caching - What is the recommended way to save chat history in Android? -


i programming chat application using asmack.

i looking best way save chat history. although server side later on, still want history (mostly recent) saved on phone.

i read http://developer.android.com/guide/topics/data/data-storage.html

and implemented internal data storage save history. recommended way save chat history/contacts?

edit:

in reply comments; follows, i've done? (but adding encryption)

string filename = "contactname.history"; string string = "encrypted message history";  fileoutputstream fos = openfileoutput(filename, context.mode_private); fos.write(string.getbytes()); fos.close(); 

will have encrypt string manually, or android on own?

best way use sqlite data base because easy process , can sort objects based on timestamp.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -