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

14 Types Knob Assortment Kit, for 1/4" Round Shaft Potentiometer ,KNOB-KIT1-D
$18.95
14 Types Knob Assortment Kit, for 1/4INDUSTRIAL MRO PART# 5A5000 POTENTIOMETER *USED*
$30.0
INDUSTRIAL MRO PART# 5A5000 POTENTIOMETER *USED* pictureBRAND NEW - Ohmite CU-1521 Potentiometers
$9.5
BRAND NEW - Ohmite CU-1521 Potentiometers pictureCLAROSTAT RV4NAYSD153A POTENTIOMETER *NEW IN BOX*
$16.0
CLAROSTAT RV4NAYSD153A POTENTIOMETER *NEW IN BOX* pictureCLAROSTAT RV4NAYSD501A POTENTIOMETER 500OHM *NEW IN BOX*
$16.0
CLAROSTAT RV4NAYSD501A POTENTIOMETER 500OHM *NEW IN BOX* picture






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