BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-11-2009, 07:46 PM   #1 (permalink)
New Member
 
Join Date: Jan 2009
Model: 8310
PIN: N/A
Carrier: at&t
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default persistent store question (newbie)

Please Login to Remove!

Hi,
I have an app that need to store daily payment transactions log on the phone and the log should be automatically discard after 1 day. Right now, i store all these transactions into a persistent store and display fine but I run into problem of don't know when to destroy the persistent store as I don't know the creation time to compare. Am I doing this the right way? Should I use persistent store or something else (like file store) for this purpose?

Thanks
Offline  
Old 08-11-2009, 07:52 PM   #2 (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

Why don't you store the date along with the data?
Offline  
Old 08-18-2009, 04:19 AM   #3 (permalink)
Thumbs Must Hurt
 
shraddha294's Avatar
 
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
PIN: N/A
Carrier: TMobile
Posts: 111
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Like the previous post says, store date /time of the record too.
Persistent store is just fine for ur app, file store is not needed for this requirement.
Offline  




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