BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-17-2008, 10:26 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jul 2008
Model: 7100T
PIN: N/A
Carrier: Programmer
Posts: 50
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Thumbs Must Hurt
 
Join Date: Jul 2008
Model: 7100T
PIN: N/A
Carrier: Programmer
Posts: 50
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Thumbs Must Hurt
 
Join Date: Jul 2008
Model: 7100T
PIN: N/A
Carrier: Programmer
Posts: 50
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

could someone tell me what 0x8c746bdb8fb74512L means?
Offline  
Old 07-17-2008, 02:24 PM   #5 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
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


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





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