I am trying to make a simple android app. All I want the app to do is connect to my server/database开发者_如何学C and run a query. whatever the returned string from the DB is should be displayed on the screen.
I have not found any examples of an app that show this. the dev guide doesn't have anything like that.
How does this work?
- Does the android app connect to the actual database and run queries?
- Does the android app require a restful API on the server?
Just use web service then only you can access the data from server database. I think this process is done by JASON technique. Just you refer how to pass your string to URL from your Android application. That's enough.
精彩评论