-1

I am creating an Android application and it have a lot of packages. I need to do a database backup, and I don't know which package it is.

File dbFile =new File(Environment.getDataDirectory() +"/data/Your.Package/databases/databaseName.db");

Is "Your.Package" the package where my SQLite classes is?

I am gettin :

[Configuracoes.java:235:doInBackground()] /data/data/org.Database/databases/banco.db (No such file or directory)

When I try the package where I created the database.

Where is the correct one?

I am sorry if it is a stupid question.

4

1 回答 1

1

Location of your database is

/data/data/YOUR_PACKAGE/databases/ab.db

You can find it on Android manifest file.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  android:versionCode="0.0"
  package="YOUR_PACKAGE" android:versionName="1.0">
于 2013-03-30T03:25:21.133 回答