BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-20-2009, 07:52 PM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2009
Model: 9530
PIN: N/A
Carrier: Telus
Posts: 107
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question 2 Questions - Application Icon & Menu

Please Login to Remove!

Hello Everyone

1. How do I set the icon for the application in JDE 4.7?

2. I have a small application with a button. When I click the button, the menu appears. How do I stop the menu from appearing?

Thanks
Offline  
Old 03-21-2009, 12:24 AM   #2 (permalink)
New Member
 
Join Date: Mar 2009
Model: 7100T
PIN: N/A
Carrier: 153
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi i don't know much about JDE 4.7 but i will suggest you one thing if you don't get any good answer here then better go to Google and type "How do I set the icon for the application in JDE 4.7" then you will definitely get the good results.
Because i had one problem like same thing then i have solved using this method only.

Thanks
__________________
goji juice | Cheap Make Up
Offline  
Old 03-21-2009, 08:07 AM   #3 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Add the icon image to your program, then right click on it in the file view and select "properties". There is a checkbox "use as application image".
Offline  
Old 03-21-2009, 08:58 PM   #4 (permalink)
New Member
 
Join Date: Mar 2009
Model: 8320
PIN: N/A
Carrier: t-mobile
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

So what about the 2nd question? How do you keep the menu from displaying? I have a similar issue. I have a ListField and when users click I want to add a new screen to the stack but I'm not sure how to detect the event.
Offline  
Old 03-22-2009, 12:52 PM   #5 (permalink)
Thumbs Must Hurt
 
Join Date: Nov 2008
Location: Sioux Falls, SD
Model: 9530
PIN: N/A
Carrier: Verizon Wireless
Posts: 65
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think I'm missing something. You have a button (ButtonA) on a screen (ScreenA). When you click ButtonA, you want to display a new screen (ScreenB). Where is the menu coming into play?

If you're talking about the standard BlackBerry menu that is displayed when you click the physical "menu" key, then it looks like you need to override the onMenu() method.

If you're talking about a ListField opening up, then it sounds like you have a code problem somewhere.
__________________
Handspring >> Palm >> BB Pearl >> BB Storm

Tumblog: http://www.geekkink.com
Blog: http://www.zechariahs.org/blog

Last edited by zechariahs : 03-22-2009 at 12:56 PM. Reason: Added (and corrected) Link to JavaDoc.
Offline  
Old 03-22-2009, 02:04 PM   #6 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2009
Model: 9530
PIN: N/A
Carrier: Telus
Posts: 107
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have a button on the screen. When I click the button, it displays the next screen, but I also popups the blackberry menu which is same what you get when you press the blackberry application button.

How do I stop the blackberry menu from poping up?

Thanks
Offline  
Old 03-22-2009, 04:27 PM   #7 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Add the style CONSUME_CLICK to your buttonfield.
Offline  
Old 03-22-2009, 11:40 PM   #8 (permalink)
Knows Where the Search Button Is
 
Join Date: Feb 2009
Model: 9000
PIN: N/A
Carrier: AT&T
Posts: 16
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
ButtonField myButton = new ButtonField("Test",ButtonField.CONSUME_CLICK);
Offline  
Old 03-23-2009, 07:02 AM   #9 (permalink)
Knows Where the Search Button Is
 
krmlkr's Avatar
 
Join Date: Jul 2008
Model: 8320
PIN: N/A
Carrier: Airtel
Posts: 19
Post Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up How to find type of keypad at runtime ?

Hi,

I am developing an application in which I want to find the device keypad is QWERTY or non QWERTY. Depending on this I want to do the further operations.

Is there any direct API to do so?


Regards,
Krmlkr
Offline  
Old 03-23-2009, 07:32 AM   #10 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2009
Model: 9530
PIN: N/A
Carrier: Telus
Posts: 107
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the sample code WonderfulRemote.
Offline  
Old 03-23-2009, 08:06 AM   #11 (permalink)
Thumbs Must Hurt
 
Join Date: Nov 2008
Location: Sioux Falls, SD
Model: 9530
PIN: N/A
Carrier: Verizon Wireless
Posts: 65
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

First off, you should create a new thread instead of posting your own (completely unrelated question) in someone else's thread.

To answer your question, I don't know. I would probably get information about the device and derive the keyboard. Storm, then check how it's positioned. Pearl, then you know it's non-QWERTY. Curve, then you know it's QWERTY. etc.

Quote:
Originally Posted by krmlkr View Post
Hi,

I am developing an application in which I want to find the device keypad is QWERTY or non QWERTY. Depending on this I want to do the further operations.

Is there any direct API to do so?


Regards,
Krmlkr
__________________
Handspring >> Palm >> BB Pearl >> BB Storm

Tumblog: http://www.geekkink.com
Blog: http://www.zechariahs.org/blog
Offline  
Old 04-14-2009, 04:47 AM   #12 (permalink)
New Member
 
Join Date: Apr 2009
Model: 9000
PIN: N/A
Carrier: Airtel
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Override noMenu method on current screen

public boolean onMenu(int instance)
{
return true;
}
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.