Hi , How can I use and access a database file (.db) ? I've tried many ways but nothing works , the problem is when I try to open a database file the application crashed , so I've tried to check if the database file is exist :
File database = context.getDatabasePath("maindb.db"); database.exists(); // false database.getPath(); // this gives me the path data/data/MY_Package/databases/maindb.db database.isFile() ; // false ////// this is my open command if(database.exists()) { myDb=SQLiteDatabase.openDatabase(DB_NAME, null, SQLiteDatabase.NO_LOCALIZED_COLLATORS); } please I need help , I'm so tired , I've been searching for a long time yours, Tareq -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en