I need to store data 开发者_StackOverflow中文版on a website using android and retrive data from this site to use this data in my project. How is possible Or is it possible????
You can either create your own website and implement a service for storing your data, or you can use an existing web service. For example, Amazon Web Services (AWS) gives you several options, e.g.:
- Amazon S3 is good for storing arbitrary data objects
- Amazon SimpleDb is a simple non-relational database
Amazon has the Android SDK for interfacing with all those services.
You can learn more about AWS at the AWS website.
There are web services by other companies as well, e.g. : Microsoft Azure
These services cost money if you use them intensively, but for a small amount of data you usually don't have to pay anything.
First you need a server in which you can create physical database and store and make web-services.if you dont aware with parser then give you some link
First
Second
With C2DM you can notify devices that new data is available.
For storing the data you can use :
- AWS - Amazon web services
- or if you have your own SQL server setup a http webservice or WCF webservice.
If you that website provides its android api then it well and good to use that api for the work that you wnat to do.
For this you have to use web services call. There are 2 Parts
Server Part
1->create a web service for store data 2->Create a web service for fetch data in xml or json format
Android part
1->send data with the help of web service 2->retrieve data with the help of web service
There is some usefull liks http://www.ibm.com/developerworks/opensource/library/x-dataAndroid/index.html
精彩评论