Topic awaiting preservation: ANDROID SQLLite problems (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: INFRONT OF MY PC |
posted 12-06-2010 21:35
Hi code: private void some_function() { myDB = this.openOrCreateDatabase(MY_DB_NAME, MODE_PRIVATE, null);
code: public class DBHandler{//threadsafe singleton . . private static DBHandler instance; . . public static synchronized DBHandler getInstance() { if (DBHandler.instance == null) { DBHandler.instance = new DBHandler(); instance.myDB = android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(MY_DB_NAME, null); } return DBHandler.instance; }
|
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 01-07-2011 15:03
I'd guess it was because you were not passing MODE_PRIVAT in the second variant. |
Paranoid (IV) Inmate From: INFRONT OF MY PC |
posted 01-08-2011 10:37
actually I had not yet fixed it, had no time to do some coding. will try and fix it tomorrow. |
Paranoid (IV) Inmate From: Mercury City |
posted 01-08-2011 14:36
I personally count on you to build some great games The choice out there is appalling... |
Paranoid (IV) Mad Librarian From: ber/ger |
posted 01-08-2011 16:29
I like Swype a lot as a replacement for the default touch keyboard - will be really hard to switch to a phone that doesn't have it. Though it might well make its way to iPhone 7/8 |