如何打开/data/data/com.android.email/EmailProviderBackup.db? 在我的program.i设置
android:sharedUserId="android.uid.phone"
并有平台标志。
public static final String EMAIL_BACKUPDB_PATH = "/data/data/com.android.email/databases/EmailProvider.db";
SQLiteDatabase.openDatabase(EMAIL_BACKUPDB_PATH, null,SQLiteDatabase.OPEN_READWRITE);
it can open well.
但如果我像这样更改EMAIL_BACKUP_PATH:
public static final String EMAIL_BACKUPDB_PATH = "/data/data/com.android.email/databases/EmailProviderBackup.db";
SQLiteDatabase.openDatabase(EMAIL_BACKUPDB_PATH, null,SQLiteDatabase.OPEN_READWRITE);
它不起作用。例外是:
02-21 12:25:33.852: E/SQLiteLog(10780): (14) os_unix.c:30174: (13) open(/data/data/com.android.email/databases/EmailProviderBackup.db) -
02-21 12:25:33.859: E/SQLiteDatabase(10780): Failed to open database '/data/data/com.android.email/databases/EmailProviderBackup.db'.
02-21 12:25:33.859: E/SQLiteDatabase(10780): android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
请帮帮我!谢谢!