Im making an android program that will display data on textviews based on JSON from a php webpage.
Here is a sample of my JSON that is already displayed on the php page:
[{"ID":"1","temperature":"33","max_humidity":"33","min_humidity":"34","lowtide":"35","hightide":"35","sunrise":"500","sunset":"530","moonrise":"530","moonset":"540","illumination":"45%"}]
I want to one of my textview to display “Temperature: 33”, etc..
I tried getting the source code of my webpage inside my android program using httpclient & string buffer, then parsing only the JSON texts then pass to a variable, but that doesnt work for me. I need the webpage because my database is there (which is the source of my JSON)
Is there any very easy way to do this?
Okay, here is what you need. No need of third parties library.