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:
- write data database file in csv format - using opencsv library
- write data database file in xml format
- 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
Post a Comment