大家好我在我的应用程序中使用db我已经存储了资产文件夹中的db这里是我设置了我的数据库路径的示例。它不会在包中生成任何db文件夹。任何人都可以帮助我..
public class Paths
{
private static final String FILEPATH = Environment.getExternalStorageDirectory() + "/Nali Kali/";
private static final String DBPATH = "data/data/com.android.akshara/databases/";
private static final String DBNAME = "akshara.db";
public Paths()
{
}
public static String getFilePath()
{
return FILEPATH;
}
public static String getDbPath()
{
return DBPATH;
}
public static String getDbName()
{
return DBNAME;
}
}
Thank you in advance.:-)
答案 0 :(得分:1)