[android-developers] Re: ? Best way of storing text

2011-03-30 Thread William Moore



 Define large amount. A bunch of 1KB files? A few 1MB files?  Several
 gigabyte files?

That is the question, what would be the best way, not sure how many.
It would be in the MBs. GBs would be to large for Android I think.

  Note: I want it to be locally stored. So no connection is needed
  after installing. Otherwise this would be easy.

 Adding a connection requirement would make this easier?

It would be easier to just post it on the web. Much easier than
programming from scratch.

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


[android-developers] Re: ? Best way of storing text

2011-03-30 Thread William Moore
 For example, you could store it as text files, compressed into a .zip file,
 along with a SQLite database with the metadata (including section boundaries
 within the files). For large amounts of text, this would be much more
 compact than storing the text in the SQLite database directly.

So when you do an add-on, another book like thing, would you have a
separate SQLite db or append it? Was wondering in case someone wants
to remove it? Still reading on how SQLite works on Android. As far as
efficiently.

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


[android-developers] Re: ? Best way of storing text

2011-03-29 Thread Bob Kerns
A lot depends on how you would access it.

For example, you could store it as text files, compressed into a .zip file, 
along with a SQLite database with the metadata (including section boundaries 
within the files). For large amounts of text, this would be much more 
compact than storing the text in the SQLite database directly.

If you need to do extensive text searching, you may also want to store a 
full-text index, perhaps using Apache Lucene. This will add about 20-30% (of 
the uncompressed text size) to your total size, but greatly speed 
searching. 

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