Programmer
Programmer

Reputation: 5400

Database overwritten in Android SQLite

what i am doing is xml parsing and saving it to the database, but for the 1st time it was ok but now its overwriting same database again and again. How can i put a check that when new data come in xml then only write to database otherwise not.

Thanks

Upvotes: 0

Views: 117

Answers (2)

9android.net
9android.net

Reputation: 29

To check new data come in xml then only write to database otherwise not you can race it to logcat to view.

Upvotes: 0

daigoor
daigoor

Reputation: 685

you need to manually handle such things there are noway for the Android to determined whatever your data changed or not.

you need to write some logic to know if the data changed or not !

Upvotes: 1

Related Questions