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

Ricoh Pro C5100 C5100S 512 MB RAM Memory D1365716A / D1365716 OEM
$69.99
Ricoh Pro C5100 C5100S 512 MB RAM Memory D1365716A / D1365716 OEM pictureKonica Minolta Bizhub C452 C552 C652 Memory Module 2GB RAM [Part # - V865300026]
$59.99
Konica Minolta Bizhub C452 C552 C652 Memory Module 2GB RAM [Part # - V865300026] pictureNortel Norstar NT7B56FA-93 w/ NT7B75XX-XX Trunk Cards + Memory Card + Phones
$300.0
Nortel Norstar NT7B56FA-93 w/ NT7B75XX-XX Trunk Cards + Memory Card + Phones picturebel-art f37910-0013 ergopet memory pipettor; 15? in. height
$149.08
bel-art f37910-0013 ergopet memory pipettor; 15? in. height pictureZiraki Memory Foam Cover for Chair Armrests Pillow - Office Desk Armrest Cushion
$14.42
Ziraki Memory Foam Cover for Chair Armrests Pillow - Office Desk Armrest Cushion picture






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