Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old November 19th, 2009, 05:15 PM   #1 (permalink)
New Member
 
Join Date: Nov 2009
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Storing Constant Data

Hello!

My application needs to store about 5000 records of data that will never change. An example would be a dictionary of 5000 words.

Initially, I started creating a string-array.xml resource file for these records, but realized that I wanted to associate integer data with each string-array as well.

Therefore, I started looking into the SQLite database for storing these records. This seems like a great option, but I discovered that the database will be created the first time the application runs. This means that the first time a users downloads my application, they will have to wait a *very* long time for the database to build ... which is a horrible user experience.

Are there any other options for defining and storing application data that will never change?

PocariSweat1991 is offline  
Reply With Quote
Sponsors
Old November 19th, 2009, 08:32 PM   #2 (permalink)
New Member
 
Join Date: Nov 2009
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

For those interested, I have found an interesting solution in the following blog post:

ReignDesign | Blog - Using your own SQLite database in Android applications

This solution performs a byte-stream transfer of a database in the assets folder, to a new database on the system. I have not tested this yet, but I think it will be faster than INSERT-ing multiple records.
PocariSweat1991 is offline  
Reply With Quote
Reply

Bookmarks

Tags
application data, constant data, data storage, dictionary, sqlite, storage


Go Back   Android Forums > Android Development > Application Development User CP
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTC Desire constant data use Consumer Desire - Support and Troubleshooting 62 December 13th, 2011 11:11 AM
Desire HD on Orange - constant laggy, constant 100% CPU usage, 7 hour battery life. cascas Desire HD - Support and Troubleshooting 17 March 14th, 2011 12:24 PM
Constant error msg 3330 - You have attempted to use a data application without a data plan droiduzr2 Rogers 10 February 3rd, 2011 04:15 PM
constant data usage ryohei47 HTC EVO 4G 7 July 6th, 2010 09:32 AM
Storing and updating data raym0nd Application Development 3 May 27th, 2010 10:46 AM



All times are GMT -5. The time now is 11:34 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo