Fender wrote: > I want to try and figure out to connect to the internet and grab > information, without using the androids browser. > > im probably being too vauge, so let me give an example. > > Say i have a MySQL database online. or a file. or anything. Say in > that whatever, in this case maybe a table or some code, that has > something along the lines of value1 = 1. Basically assigning a > variable of value1 to equal 1. How do i grab that information from my > site and give it to my app? How do i send it? > > For instance, a review. Say someone rates a particular item 5 stars in > my app. How do i send that information to be stored online so whenever > ANY user views it, it grabs that information and displays it? > > It could also be explained in terms of a highscore. Say someone gets a > high score of 1000 on my app. How can i send that to a site/database > and then retrieve it?
Step 1: Wrap your MySQL database or other back-end logic in some sort of Web service, perhaps using a REST-style interface. Step 2: Use the built-in HTTP access mechanisms (HttpUrlConnnection, org.apache.http.*) to communicate with your service from Step 1. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

