android database -
for android application making want keep database locally on device , sync server periodically (say every 1 hour).
there going database on website related app made using phpmyadmin.
i new android. please suggest how go this. thanks.
how use rest this? don't understand
you need learn how create database on android phone. start looking content providers , databases. example android notepad tutorial , sample code provided on android developers notepad tutorial.
next web database create through phpmyadmin simple make available sync need make , deploy webservice: rest, soap etc... xml or json communication example.
after need learn how make http post , calls, parse data , insert phone database. (make sure in seperate thread , not ui - async task or thread).
for periodic sync need make background service started alarm periodically. see broadcast receivers , alarm manager class.
Comments
Post a Comment