开发者

Update database android application from a web site

开发者 https://www.devze.com 2023-03-14 08:44 出处:网络
I want to create an application which has a button on my menu that the user can click and it will replace an开发者_Go百科d download the database which is provided on my website. The button already exi

I want to create an application which has a button on my menu that the user can click and it will replace an开发者_Go百科d download the database which is provided on my website. The button already exist and the problem is how to replace and download it from a web site?


Whenever user click on button 1) you need to remove all the data from database. 2)Starting inserting data which is present on website by parsing the xml which will holds information present in Website.


1) Make HTTP connection with website.
2) check for new data are available on net or not.
3) if new data are available on net then download all new data then you have two choice.
   1.update existing data.
   2.Truncate existing data and insert newly downloaded data.
0

精彩评论

暂无评论...
验证码 换一张
取 消