1

Can anyone tell me how to store data persistently in database ?

I have done one simple app in which I have connected databases with it to store values but whenever I close this application, the previously stored data gets deleted . I want this data to be stored even if we close the app or it should fetch data whenever we reopen the application .

Can anyone please tell me solution?

4

1 回答 1

2

关于 BB10 基础的另一个问题最终您应该考虑提供给 ndk 的文档。SQLite 在 BB10 上可用。文档可以在这里找到:

https://developer.blackberry.com/native/documentation/core/data_management.html

并且可以在此处找到参考:

https://developer.blackberry.com/native/reference/core/

即使使用 Qt,您也应该能够访问 SQLiteQSqlDatabase::addDatabase()

于 2013-09-24T10:45:22.457 回答