Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you package your data into your res/raw folder, it will indeed be duplicated and unfortunatley cannot be removed once the phone is done with it ie after first run.</p> <p>You could experiment which is a smaller in size - packaging the data as a csv or xml file or as a precompiled DB in the res/raw folder and if acceptible go with the best. If you went with the csv or xml file option, you could run a parser on first run and process the data into a DB.</p> <p>Something I only found recently but the res/raw folder can only handle files of around 1mb, this is one solution I came across for packaging a large DB and moving it on first run, it doesn't get over the repition of data within the app:</p> <p><a href="http://www.mail-archive.com/android-developers@googlegroups.com/msg28194.html" rel="nofollow">Database Populating Solution</a></p> <p>Here is an alternative from the android blogspot, the third one down maybe exactly what you are looking for:</p> <blockquote> <p>The downloader activity runs at the beginning of your application and makes sure that a set of files have been downloaded from a web server to the phone's SD card. Downloader is useful for applications that need more local data than can fit into an .apk file.</p> </blockquote> <p><a href="http://android-developers.blogspot.com/2008/09/three-new-samples-triangle-spritetext.html" rel="nofollow">Downloader Blogspot</a></p> <p>Possibly adapt this example - download the DB file from the server and then move it into your database folder.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload