android - Import/ export data from sqllite database -


my question more related programming approach should used import/ export data sqllite database.

i'm new android app development , developing simple notepad application in want give option user export & import notes to/from file.

i've done quite research on web , found there various way that:

  1. write data database file in csv format - using opencsv library
  2. write data database file in xml format
  3. take backup of sqllite db file , replace while importing - believe approach won't let me keep old notes , import notes backup db file?

i know approach better. if there else better above ones know it.

i'd 1, without using 3rd party libraries (it's easy import , export comma delimited file!!).
can use replace command, updates existing data , inserts new one, if row not existing.

or 2.
xml files bloated garbage tags... , it's more complicated parse them reading/writing simple text files (with or without header row).


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -