BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-17-2008, 10:26 AM   #1
Aiwa
Thumbs Must Hurt
 
Join Date: Jul 2008
Model: 7100T
PIN: N/A
Carrier: Programmer
Posts: 50
Default Second phonebook

Please Login to Remove!

I'll apologize in advance for sending too many Threads...it's because i have two completely different questions, and i need the answers as fast as possible, so i thought i would be better for me and for the ones reading, to just send 2 different threads..
Anyways..

I just need that in my app, i have a list of numbers, completely different from the numbers on the phonebook...just another list
and if there are no numbers on the list, just show *Empty* like the default
i just need a first push so i can get started with that...i thought about arraylists or treemaps but none of those can be used on the blackberry...and also, this list has to be saved even when the phone is off....
anyone has any idea of how could i do that?
Offline  
Old 07-17-2008, 10:35 AM   #2
Ivanov
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Default

use a Vector and persistent store to save your list. For showing the list you can use the ListField.

Take a look at the contacts sample in the JDE folder. I think that's what are you looking for.
Offline  
Old 07-17-2008, 11:18 AM   #3
Aiwa
Thumbs Must Hurt
 
Join Date: Jul 2008
Model: 7100T
PIN: N/A
Carrier: Programmer
Posts: 50
Default

thank sample is too big, i think i would waste my time reading all that
but only the classes you told me, help me a lot...
i'll just look a bit on the internet about those classes and try to work from that...if i have any doubts i'll hit yall up
but thanks for the help anyways
Offline  
Old 07-17-2008, 01:12 PM   #4
Aiwa
Thumbs Must Hurt
 
Join Date: Jul 2008
Model: 7100T
PIN: N/A
Carrier: Programmer
Posts: 50
Default

Code:
PersistentObject persist = PersistentStore.getPersistentObject( 0x8c746bdb8fb74512L );

could someone tell me what 0x8c746bdb8fb74512L means?
Offline  
Old 07-17-2008, 02:24 PM   #5
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

Each persistent object store requires a unique ID. Generally, you select some string, like "my_persistent_store", and use the IDE to generate a long value from this string. Highlight the string in the IDE, rightclick, and select "Convert to long".
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Single To 3 Phase 7.5KW 10HP 220V Variable Frequency Drive Inverter CNC VFD VSD picture

Single To 3 Phase 7.5KW 10HP 220V Variable Frequency Drive Inverter CNC VFD VSD

$169.90



VEVOR 7.5KW 10HP Variable Frequency Drive Inverter Convert 1 To 3 Phase VFD 220V picture

VEVOR 7.5KW 10HP Variable Frequency Drive Inverter Convert 1 To 3 Phase VFD 220V

$163.99



New & Genuine ATV12H037M2 Inverter In Box Expedited Ship 1PCS picture

New & Genuine ATV12H037M2 Inverter In Box Expedited Ship 1PCS

$119.14



205A MMA ARC Welding Machine 110/220V Dual Volt IGBT Inverter Welder Machine picture

205A MMA ARC Welding Machine 110/220V Dual Volt IGBT Inverter Welder Machine

$118.99



55A IGBT Air Plasma Cutter DC Inverter Cutting Machine PLC55X Clean Cut 110/220V picture

55A IGBT Air Plasma Cutter DC Inverter Cutting Machine PLC55X Clean Cut 110/220V

$128.00



750W 1HP 220V Variable Frequency Drive Inverter Converter Single To 3 Phase VFD picture

750W 1HP 220V Variable Frequency Drive Inverter Converter Single To 3 Phase VFD

$34.99







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