BlackBerry Forums Support Community               

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

Please Login to Remove!

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?

Old 08-11-2009, 08:52 PM   #2 (permalink)
BlackBerry Extraordinaire
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts

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

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.
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
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.