Interesting option, Jeffrey.
The only drawback is that user probably won't be happy when the
application would ask her to delete data.apk.
On the other hand the remaining approaches are also imperfect:
1) In case the application downloads data after installation, user may
be unhappy with downloading large file. It's true if the application
asks the user to download data or silently downloads it...
2) Keeping unnecessary data in /assets is also bad because of wasting
memory. Using compression would reduce the problem but won't eliminate
it...

On Dec 11, 9:38 pm, Jeffrey Blattman <[email protected]>
wrote:
> another option i've seen is to bundle your data in a different .apk.
> when the data.apk installs, it just copies the bundled data from the apk
> to say the sdcard ... then asks the user to delete the data.apk.
>
> i suppose the option below would be preferable unless you don't have a
> place to host your data.
>
> On 12/11/09 11:35 AM, Andriy Tsykholyas wrote:
>
>
>
> > John and Mark,
>
> > thanks for your answers :)
>
> > On Dec 10, 7:50 pm, "Mark Murphy"<[email protected]>  wrote:
>
> >>> 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.
>
> >> The APK file cannot be modified at runtime, so you will not be able to
> >> delete your data file if it is packaged in the APK. If you download the
> >> data file after install, you can delete the downloaded data file after
> >> conversion to SQLite (or just download it in SQLite format in the first
> >> place).
>
> >> --
> >> Mark Murphy (a Commons Guy)http://commonsware.com
> >> Android App Developer Books:http://commonsware.com/books.html
>
> --
>
>  qr-gmail.png
> < 1KViewDownload

-- 
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