开发者

Display database data into a table layout or into textviews

开发者 https://www.devze.com 2023-01-28 19:09 出处:网络
Hey guys, Im nuew to and开发者_运维技巧droid but struggling with databases. How would i retrieve data from my database and put it into a table or textviewYou use Cursor and SQLite driver.

Hey guys, Im nuew to and开发者_运维技巧droid but struggling with databases.

How would i retrieve data from my database and put it into a table or textview


You use Cursor and SQLite driver.

If you are struggling, then start doing the tutorials provided by google, particularly you might want to look at notepad tutorial. Start simple.


Use SQLiteOpenHelper. It provides getReadableDatabase() and getWritableDatabase() .these returns SQLiteDatabase.

0

精彩评论

暂无评论...
验证码 换一张
取 消