{n8} wrote:
> Hello everyone, I'm working on my first real Android app.  What I am
> trying to figure out how to do, is click on a button from the main
> screen, and by clicking on that button, the app downloads a JavaScript
> that contains a list of available downloads.  It would automatically
> form the clickable list items based on what is contained in the
> JavaScript.
> 
> I cannot seem to find any info in detail on this topic.  So if anyone
> would have any experience with this subject it would be greatly
> appreciated if you could maybe share what exactly I need to do for
> this or at least point me in the correct direction :)

If "the Javascript" is JSON, you can use the parser built into Android:

http://developer.android.com/reference/org/json/JSONArray.html
http://developer.android.com/reference/org/json/JSONObject.html

(depending on whether the JSON is an array or an object)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Consulting: http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to