# Can not buld Antroid package, using methods from inherited nUI class

**URL:** <https://techcommunity.softwareag.com/t/can-not-buld-antroid-package-using-methods-from-inherited-nui-class/100271>\
**Category:** Forum\
**Tags:** mobile\
**Created:** [January 6, 2012, 9:27pm UTC](https://techcommunity.softwareag.com/t/can-not-buld-antroid-package-using-methods-from-inherited-nui-class/100271 "2012-01-06T21:27:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![templar](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@templar](https://techcommunity.softwareag.com/u/templar)\
**Post date:** [January 6, 2012, 9:27pm UTC](https://techcommunity.softwareag.com/t/can-not-buld-antroid-package-using-methods-from-inherited-nui-class/100271/1 "2012-01-06T21:27:41Z")

</div>

Hello Community,

Could you please help me with the following issue?

I have following issue building Android .apk:

1. I have a Class that extends nUITablerowElement. It looks like this:

```auto
package com.softwareag.mobile.nativeuilocation;

import javax.microedition.lcdui.Graphics;

import com.softwareag.mobile.runtime.nui.nUITablerowElement;

public class BorderRow extends nUITablerowElement {
	
	boolean top_or_bottom;
	public BorderRow(int nuiid) {
		super(nuiid);
	}
	
	public void render(Graphics g, int parent_inner_x, int parent_inner_y,
			int parent_inner_width, int parent_inner_height) {
		super.render(g, parent_inner_x, parent_inner_y, parent_inner_width,
				parent_inner_height);
	}
}
```

1. In my class I’m trying to access render method from the parent, but building this to Android package fail with following error:  
[javac] Compiling 30 source files to D:\Develop\Eclipse\Collaboration\_NativeUILocation\_\Builds\0.0.0\AND\_HTC\_G1\_temp\_\_java\_edit\_\bin  
[javac] D:\Develop\Eclipse\Collaboration\_NativeUILocation\_\Builds\0.0.0\AND\_HTC\_G1\_temp\_\_java\_edit\_\src\com\softwareag\mobile\nativeuilocation\BorderRow.java:22: error: cannot find symbol  
[javac] super.render(g, parent\_inner\_x, parent\_inner\_y, parent\_inner\_width, parent\_inner\_height);  
[javac] ^  
[javac] symbol: method render(Graphics,int,int,int,int)  
[javac] Note: D:\Develop\Eclipse\Collaboration\_NativeUILocation\_\Builds\0.0.0\AND\_HTC\_G1\_temp\_\_java\_edit\_\src\com\softwareag\mobile\runtime\core\CanvasNativeUI.java uses unchecked or unsafe operations.  
[javac] Note: Recompile with -Xlint:unchecked for details.  
[javac] 1 error

Just for you information compiles with no errors and runs fine with your emulator.

Thanks and best regards,  
Grigor

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [January 6, 2012, 9:35pm UTC](https://techcommunity.softwareag.com/t/can-not-buld-antroid-package-using-methods-from-inherited-nui-class/100271/2 "2012-01-06T21:35:09Z")

</div>

Hi Grigor,

The rendering of the various NativeUI elements is handled by the underlying UI implementation on each platform - J2ME is the exception where we have to render the components ourselves in code. As a result a method to dictate the “render” by us in code is not present - the Android device itself deals with that rendering.

Regards,

Nick.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:01pm UTC](https://techcommunity.softwareag.com/t/can-not-buld-antroid-package-using-methods-from-inherited-nui-class/100271/3 "2021-04-02T15:01:49Z")

</div>


