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
New Contributor
edwinokugbo
Posts: 2
Registered: ‎11-05-2012
My Device: Javelin 8900

Buttons not working

Please can anyone help. I have developed an app using netbeans and it works fine on my BB but the buttons dont work on some other phones like bold 9900. It cant be clicked. 

 

I have no idea why this happend since it works ok on my 8900

 

any help will be appreciated 

 

Edwin

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: Buttons not working

We would just be guessing without reviewing the code.  Can you create a sample screen, with just a button in it, and paste that code (including the Button class) in here so that we can test it too?

 

Normal reason for this sort of issue is differences between touch screen and non touch screen.  Does it work if you click using using the trackpad on the 9900?

New Contributor
edwinokugbo
Posts: 2
Registered: ‎11-05-2012
My Device: Javelin 8900

Re: Buttons not working

Thanks peter_strange for your response

 

Actually, i got the complain from the appworld guys. 

 

You might be right that it has to do with the touch screen since some of the phones with the complain are touchscreen

 

here is the message from the appworld guys

 

"I tested your app on the BlackBerry Smartphones 8520, 8530, 9300, 9330, 9350, 9360, 9800, 9810, 9850, 9860, 9900, and 9930. After I launched the app, I realized that all of the buttons on the main page can't be clicked. Please fix this issue."

 

This is the definition from netbeans

 

public StringItem getStringItem20() {
if (stringItem20 == null) {
stringItem20 = new StringItem("", "Continue", Item.BUTTON);
stringItem20.addCommand(getItemCommand7());
stringItem20.setItemCommandListener(this);
stringItem20.setDefaultCommand(getItemCommand7());
stringItem20.setFont(getFont2());
}