BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 04-15-2009, 03:35 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Oct 2008
Model: 8800
PIN: N/A
Carrier: Globe
Posts: 52
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Regarding onClose() of MainScreen

Please Login to Remove!

hi,

does anybody know how to determine if the user clicked the "return" key or the "close" menu without using a keypad listener?

i believe the onClose() method will be executed on both scenarios since the MainScreen will be closed.

i tried using a KeypadListener, and it worked well in the simulator. but when i transferred my application to the device, i was thrown an exception that says: Unauthorized attempt to monitor key presses.

Do you have any suggestions on what i should do to solve this problem?

jacy
Offline  
Old 04-15-2009, 04:35 AM   #2 (permalink)
Knows Where the Search Button Is
 
pravin's Avatar
 
Join Date: Feb 2008
Model: 8130
PIN: N/A
Carrier: Sprint
Posts: 37
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have you tried using return false in onClose() ?
Offline  
Old 04-19-2009, 11:57 AM   #3 (permalink)
New Member
 
Join Date: Apr 2009
Model: 9530
PIN: N/A
Carrier: no
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

read api
Offline  
Old 04-20-2009, 03:30 AM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2009
Model: 9000
PIN: N/A
Carrier: T-Mobile
Posts: 67
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

override keyChar instead of using KeypadListener
Offline  




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