This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Android and the fly likes database data -to-> List view, how Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "database data -to-> List view, how" Watch "database data -to-> List view, how" New topic
Author

database data -to-> List view, how

Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
how populate a List View from database table records[sqlite]?
is more easy to populate with DB TABLE RECORDS:
1.RADIO BUTTONS or
2.LIST VIEW + RADIO BUTTONS ??

May in RADIO BUTTON GROUP have a LIST VIEW and again inside it(LIST VIEW) RADIO BUTTONS???
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41579
    
  54
What's the connection between radio buttons, a list view, and data in a DB? Make sure to KeepItDown.


Ping & DNS - my free Android networking tools app
Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 629

You can use SimpleCursorAdapter.


Life is easy because we write the source code.....
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
Ulf Dittmer wrote:What's the connection between radio buttons, a list view, and data in a DB? Make sure to KeepItDown.


may in List view appear radios? >>>>

each item in List View will have a radio, and the text will be from database table fields(concatenated)... when choose a radio and press MENU to appear menu of buttons or identically press a button at end of List, and you will choose edit/delete record or call record, well,

How a checked radio id[in a radio button group] is extracted in an Activity?
Misha van Tol
Ranch Hand

Joined: Jan 02, 2010
Posts: 56

Leonidas Savvides wrote:
may in List view appear radios?

Sure, you can create any View you want using all View widgets.
You'll need to override the getView method of the adapter to setup and fill each item.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: database data -to-> List view, how