Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Get Data from Mysql Database

Hello, could someone tell me wich track that talks about getting Data from a database for exaemple from Mysql.

4 Answers

Sorry, can't really help since I'm more of an iOS developer than Android, but I am guessing you should have a method you can call to get some data from the server and interpret it.

Found something here about parsing JSON response from a server ( http://www.androidhive.info/2012/01/android-json-parsing-tutorial/ ) but I guess the Android track here on Treehouse should have an answer for you.

Hi Mauro,

You can use http://teamtreehouse.com/library/using-php-with-mysql in case you are using PHP and MySQL on your server. There's also http://teamtreehouse.com/library/database-foundations that will give you more insight into using databases and MySQL in particular.

Thanks robert, sorry for not being specific, i already have some knoledge about php and mysql, my problem is how to use them in Android, how to call it and get the data output in android mobile app.

Thanks Robert for the help