-1

i have database i maked it with DB Browser for SQLite

Link DataBase [ HERE ]

i puted the DB inside folder Assest ok ?

now how can i make Layout have ListView and read from the DB

when i press item from Listview my app will be read from DB and show it in

new Layout : Like This Example

enter image description here

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Black.JAC
  • 25
  • 1
  • 6
  • I wouldn't use a simple `ListView` when querying data, you should deffinetely Check out `RecyclerViews` and `ViewHolder` pattern https://stackoverflow.com/questions/40584424/simple-android-recyclerview-example – grantespo Sep 14 '18 at 16:01
  • duplicate of . https://stackoverflow.com/questions/9109438/how-to-use-an-existing-database-with-an-android-application – Prakash S Sep 14 '18 at 16:48
  • anyhelp guys!!! – Black.JAC Sep 16 '18 at 05:59

1 Answers1

-1

You should create your CursorAdapter to do such things i can reccomed you this tutorial: sql tutorial

Stanislav Batura
  • 420
  • 4
  • 11