Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
eyadj86
Posts: 14
Registered: ‎04-28-2012
My Device: na
My Carrier: na

Touch not working on 9800

Hi,

 

I'm developing arabic application ob 9800.

 

Passing LOCALE_AWARE_LAYOUT to a HorizontalFieldManager is helping alot with rearranging the fields.

 

The problem is when switch to Arabic the fields are not recieving touch event on 9800, even normal fields like buttons and choice fields.

 

This problem does not appear on the 9380 full touch.

 

Thanks.

Please use plain text.
New Developer
shivam284
Posts: 108
Registered: ‎01-23-2012
My Device: torch,bold,curve,strom
My Carrier: Blackberry

Re: Touch not working on 9800

Hi ,

Can you plz post the code what ever you are using!

Thanks & Regards,
Kumar Shivam
Please use plain text.
Developer
peter_strange
Posts: 19,599
Registered: ‎07-14-2008
My Device: Not Specified

Re: Touch not working on 9800

I suspect the code you are using is quite complicated.  Can you simplify the code into a small self contained example that demonstrates the problem and post that?  Then we can all review and test if we need too.

Please use plain text.
Contributor
eyadj86
Posts: 14
Registered: ‎04-28-2012
My Device: na
My Carrier: na

Re: Touch not working on 9800

Sorry for the responding late.

This is the sample.

After changing the locale, the object choice field is not touchable, (actually you can touch it but not inside it)

The same code works fine on 9380.

 

 

 

public final class MyScreen extends MainScreen
{
	
	ObjectChoiceField objectChoiceFormField;
	String languageen[] = { "Option1", "Option2" };
	boolean englishLan = true;

	public MyScreen()
	{
		// Set the displayed title of the screen
		setTitle("MyTitle");
		HorizontalFieldManager manager = new HorizontalFieldManager(HorizontalFieldManager.LOCALE_AWARE_LAYOUT);
		manager.add(new LabelField("Choice :"));
		objectChoiceFormField = new ObjectChoiceField("", languageen, 0, ObjectChoiceField.FIELD_LEFT);
		manager.add(objectChoiceFormField);
		ButtonField button = new ButtonField("CHANGE LANGUAGE")
		{
			protected boolean navigationClick(int status, int time)
			{
				if (englishLan)
				{
					Locale.setDefault(Locale.get(Locale.LOCALE_en));
					englishLan = false;
				}
				else
				{

					Locale.setDefault(Locale.get(Locale.LOCALE_ar));
					englishLan = true;
				}
				return true;
			}
		};
		add(manager);
		add(button);
	}
}

 

Please tell me if I need to re-post this again to appear on the top of the forum so I can get more help.

 

Thanks.

Please use plain text.