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  
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

STAINLESS TACO SHELL SERVER HOLDER MAKE-UP RACK 2 to 3 SOFT OR HARD TACOS SHELLS
$4.99
STAINLESS TACO SHELL SERVER HOLDER MAKE-UP RACK 2 to 3 SOFT OR HARD TACOS SHELLS picture75 GUEST CHECK PRESENTERS SERVER BOOKS CASE OF 75 REST BAR Discover
$69.99
75 GUEST CHECK PRESENTERS SERVER BOOKS CASE OF 75 REST BAR Discover  pictureBrand New - Sealed, Dymo LabelWriter Print Server - 1750630
$119.97
Brand New - Sealed, Dymo LabelWriter Print Server - 1750630 pictureComplete Gateway 955 Server Excellent Condition FAST SHIPPING
$274.99
Complete Gateway 955 Server Excellent Condition FAST SHIPPING pictureBLACK Flowers 3 POCKET WAITRESS WAIST APRON BAR RESTAURANT SERVER Classyaprons
$11.89
BLACK Flowers 3 POCKET WAITRESS WAIST APRON BAR RESTAURANT SERVER Classyaprons picture






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