BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-14-2007, 09:42 PM   #1 (permalink)
New Member
 
Join Date: Aug 2007
Model: 8300
PIN: N/A
Carrier: AT&T
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to get user preference from a custom setting screen

Please Login to Remove!

Dear all,

I have created a custom setting screen to get user's preferences. When user exit the setting screen, in the onSavePrompt() of the custom setting screen, I know whether users want to save the changed preferences or not.
How can this information pass back to the main routine that push the setting screen ?

The idea is:
If user have selected "Save" the changes, the main routine need to update the preferences to persistant store.
Offline  
Old 09-17-2007, 02:16 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Skipper_Joe's Avatar
 
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Posts: 237
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

you can use net.rim.device.api.ui.component.Dialog class and one of its static ask() methods. They block current thread until user clicks Ok or Cancel and return user answer.
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

APPRX 100PC DYNAMIC RAM 1MEGBIT (256Kx4) LOT - SOJ20 - PN TC514266AJ-10
$9.95
APPRX 100PC DYNAMIC RAM 1MEGBIT (256Kx4) LOT - SOJ20 - PN TC514266AJ-10 pictureFisher DM6461X1-A2 Ram Card #46A3672X01R
$250.0
Fisher DM6461X1-A2 Ram Card #46A3672X01R pictureIC : 21021PC / 2102 1024*1 Static Ram Dip : 2pcs per lot
$5.99
IC : 21021PC / 2102 1024*1 Static Ram Dip : 2pcs per lot pictureIC : 21L14 / MCM21L14P25 : 1024*4 Static Ram : 2pcs per lot
$5.99
IC : 21L14 / MCM21L14P25 : 1024*4 Static Ram : 2pcs per lot pictureIC : AM9114 : AM9114BPC : Static RAM, 1Kx4, 18 Pin, Plastic, DIP : 2pcs
$7.99
IC : AM9114 : AM9114BPC : Static RAM, 1Kx4, 18 Pin, Plastic, DIP : 2pcs picture






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