Wednesday, June 8, 2011

[android-developers] Re: how would you parse this

I think you just need to read up on web services and JSON. Android
comes with a JSON parser.

On Jun 6, 11:25 pm, mike <mleon...@gmail.com> wrote:
> I need to create a news feed that takes the string from the following
> link and displays each on separate links, like the google news and
> weather feed.  Im not sure how to change that and get the information
> out of it smoothly without using substring.  Any help would be great.
>
> http://empty-water-46.heroku.com/api/news?password=xyzxyz
>
> {"news":[{"title":"Obama
> Facebook","date":"4.20.11","description":"This was a great
> achievement!"},{"title":"Oil Spill
> Again","date":"4.17.11","description":"There was another oil spill in
> the gulf."},{"title":"Middle East
> Peace","date":"4.2.11","description":"There is finally peace in the
> middle east."}]}

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment