BlackBerry SQLite multiple connections problem
I have a question regarding SQLite on BlackBerry OS 5.0 and up. Our application has two entry points, one background process that starts when the device boots and one GUI process that starts 开发者_如何学Gowhen the user clicks the application icon. Both of these processes require database access to the same database. For some reason, I can't seem to have two open connections to the database, I get a DatabaseIOException when I try to open the second connection (I also get a message that says "File System error 12"). Also, one of the SQLite statements hangs on the 'prepare' method, perhaps this is related to the two open connections, I don't know.
Can someone help me with this?
I think it should be due to open Database that is already opened.Try to use only one Database.open() method.
Use RuntimeStore to share the same database connection object between the foreground and background apps.
精彩评论