开发者

Why the data is not saved in database?

I am trying to save some data from GPS to a local database. First time when i am entering data, it saves all开发者_如何学Python velues. But after clear the data entry sheet it not saved in database. When i quit the app and again save some data, it enters easily. I m confused what happens in my app ? Any help really appreciated.

Thanks in advance.


Try to debug your app. It seems you are passing some wrong arguments. You need to debug your app. You can use FMDB for all the sqlite purpose. It is very easier to use and very easy to manage.


Have you commited the changes in the DataBase?


Before you decide to use database (SQLite) , make sure you really need a database. If all you need is to persist data and retrive it back (and not querying) , try to do archiving / serialization. See Serialization vs. Archiving? for quick info on them
If your requirement is to have a database, @Rahul's suggestion is the best.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜