課程
/移動(dòng)開發(fā)
/Android
/Android基礎(chǔ)教程-SQLite高級(jí)操作
opendatabase 保存
2017-06-25
源自:Android基礎(chǔ)教程-SQLite高級(jí)操作 3-1
正在回答
Context cont = this.getApplicationContext();String s = cont.getDatabasePath("info.db")+"";SQLiteDatabase db = SQLiteDatabase.openDatabase(s,null,SQLiteDatabase.OPEN_READONLY);
這樣就可以了,試過了
舉報(bào)
本視頻教程講解Sqlite數(shù)據(jù)庫(kù)查詢和事務(wù)操作以及將數(shù)據(jù)分頁(yè)加載
1 回答如何導(dǎo)入已有數(shù)據(jù)庫(kù)
1 回答數(shù)據(jù)庫(kù)對(duì)象
1 回答為什么我打不開數(shù)據(jù)庫(kù)
1 回答創(chuàng)建數(shù)據(jù)庫(kù)
1 回答導(dǎo)出數(shù)據(jù)庫(kù)
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2017-06-29
Context cont = this.getApplicationContext();
String s = cont.getDatabasePath("info.db")+"";
SQLiteDatabase db = SQLiteDatabase.openDatabase(s,null,SQLiteDatabase.OPEN_READONLY);
這樣就可以了,試過了