How to display data in ListView from MySQL not SQLite?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

How to display data in ListView from MySQL not SQLite?

Postby hightech » Sat Jan 23, 2010 4:47 am

Hi,

I am trying to figure out how to retrieve data from MySQL [font=Arial Black]not [/font]SQLite to display in ListView? I looked everywhere for it and can't find any tutorials or code about it. I know about notepad but it used only SQLite but I really wanted to know how to do with MySQL than SQLite to display in ListView.

I looked at this plusminus's tutorial about "Doing HTTP Post with Android" and it is really useful but i need to display in Listview not dialog message.

Please let me know how to do that. Thanks!
hightech
Freshman
Freshman
 
Posts: 5
Joined: Sat Dec 05, 2009 2:52 am

Top

Postby hightech » Tue Jan 26, 2010 2:11 am

Does anybody know how to do that? Please help me with it. Thanks!
hightech
Freshman
Freshman
 
Posts: 5
Joined: Sat Dec 05, 2009 2:52 am

Postby serkan.dogantekin » Tue Jan 26, 2010 9:15 am

I am not sure about understanding your question clearly, but according to what I understood your steps should be:
- create a servlet that gets a http request, fetches data from mysql db and returns result as an json array
- in android client :
- prepare a connection manager (use apache libraries) to call the servlet and and get the json array
- define a custom adaptor to handle this json array
- bind the adaptor to the list view
serkan.dogantekin
Developer
Developer
 
Posts: 27
Joined: Thu Jun 04, 2009 6:12 pm
Location: Istanbul/Turkey

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests