Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
309 views
in Technique[技术] by (71.8m points)

android - how to fetch data from a database online

I have a layout.xml in which when I click a button, the app looks for data on an online database. Imagine an app that goes on a DB online to see how many items are left for online purchases.

Now, I set the check for internet connectivity, I can set an action through the onClick class and I use the HttpGet but, how do I look for an information in a database online? Is there any ID for this item, or parameters to be used? How did you set your database, so as to be used to let information be found?

Thanks in advance!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

If you are talking about using your own or creating your own database, you can create a MySQL Database and write tables for your items. Then search, filter, add and delete items in your table using SQL queries.

You can also check out Parse which is a backend service with an Android SDK that allows you to store items and data online in the cloud.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...