Several of my apps have huge data files, like 20mB or more. One
technique is to download the compressed data file when the app first
starts. Store it on secondary store and access it with regular java IO
classes (Unfortunately Java IO is really, really slow because it is so
strung out on being type safe). So you kinda need to design around
that. But otherwise the Android is quite capable of dealing with large
data files. Definitely do not load data in the APK. It is best to keep
the APK small as possible.

On Dec 10, 12:03 pm, Andriy Tsykholyas <[email protected]>
wrote:
> Hi,
>
> My application needs to intensively manipulate (read-write) on some
> structured text data. The size of the data is significant ~1Mb. And
> there is initial data available for the user to start with.
>
> My idea is to put this data as a file in the .apk. Then, on initial
> application launch to read this data and populate Android SQLite
> database with it. Then just work with this database. But after the
> database is populated the data file is no longer needed. And I'd like
> to remove it to free some memory.
> Alternate approach is to work with this data file instead of  SQLite
> database. But I assume SQLite would work a magnitude faster then i/o
> on my data file...
>
> My questions are:
> 1) Is this approach OK? :)
> 2) Is it possible to delete the file which comes with .apk at all? If
> yes, where to put it in Eclipse project?
>
> Thanks in advance,
>
> Andriy

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to