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

How to get returned JSON data from a HttpPost?

I am writing a log in screen for an application that is using a simple back end made up of a few simple PHP scripts and a SQL database running on a XAMMP server. Using the android lesson for getting blog post data I tried a similar method to check I fully understand how to retrieve JSON data. However now I am trying to send the username and password to be used as parameters in PHP script for the database query. Any help would be fantastic as I'm not even 100% HttpPost is the right way to go about it.

Thanks