Discussion Forums  >  Images, Documents, File Locations

Replies: 1    Views: 82

JonSapApps
Aspiring developer
Profile
Posts: 4
Reg: Mar 27, 2012
Los Angeles
40
03/27/12 06:17 PM (13 years ago)

Persistent Data

Hey all. Anybody know of a way to save persistent data with BT? Specifically, this is what I need to do: - My app will include a couple hundred txt documents containing information - The app will display these txt docs - The user may wish to edit a txt document and save changes - Changes will need to persist each time he/she opens the app. Possible?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/28/12 02:12 AM (13 years ago)
If it's simple text....have a look at the BT_fileManager class. It's got all sorts of simple routines to open, save, delete text files from the devices cache. You could copy / study the methods used throughout the core code that does exactly this. Example: reportToCloud method downloads and saves simple text file. I think the tough part will be how you'll implement the editing routines. Saving after edit will be easy with BT_fileManager. Not sure what interface you'll whip-up to allow editing.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.