I'll second the JSON idea. I didn't know about it until about 9 months ago and now I couldn't see doing what I do without it.
On Sun, Dec 27, 2009 at 3:53 AM, Yves Glodt <y...@mind.lu> wrote: > I suggest using JSON instead of XML. One reason would be that tt is more > lightweight than XML. > > Doing JSON in PHP is easy, basically try to get your query result as a > two-dimensional array, and use json_encode to transform it to JSON. > > On the Android side, you can use org.json (which is part of the Android > platform) to "parse" the JSON-response and use the data in your app. > > best regards, > Yves > > 2009/12/24 Skid <nski...@googlemail.com> > > I have no experience in this sort of thing which is why I'm asking for >> advise, I need to pull data off a MySQL database on my server, the >> data doesn't need to be updated contently just ever minute at the very >> least. I want to do it by sending a http request to a php page and >> have that php page create xml page that the android app would read and >> then work with. >> >> The reason I would like to do it that way is just because I know php >> better then I know java and its something I've done before when >> working with AJAX. However I don't know how to go about doing this, or >> even if this would be a good way to do it in the first place, so I >> could use some advise on the matter. >> >> If someone could point me to a code snippit I could play around with >> to do this I would appreciate it. >> >> Thanks, >> :) Skid :) >> >> -- >> 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+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > -- > 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+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Writing code is one of few things that teaches me I don't know everything. Join the Closed Beta of Call Girl Manager http://www.fuligin.com/forums -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en