Android sqlite数据库自定义存放路径办法参考(未验证)
生活随笔
收集整理的這篇文章主要介紹了
Android sqlite数据库自定义存放路径办法参考(未验证)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
public class TestDB extends SQLiteOpenHelper {
private static final String DATABASE_NAME = "usertest.db";
private static final int DATABASE_VERSION = 1;
public TestDB (Context context){
super(context, context.getExternalFilesDir(null).getAbsolutePath() + "/" + DATABASE_NAME, null, DATABASE_VERSION );
}
...
}
http://stackoverflow.com/questions/4806181/sqlite-database-on-sd-card
總結
以上是生活随笔為你收集整理的Android sqlite数据库自定义存放路径办法参考(未验证)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 涡街流量计在使用中会受到哪些工况影响
- 下一篇: 数显恒温水浴振荡器:实验室的得力助手