Sync Android with a website database?

后端 未结 1 1544
一整个雨季
一整个雨季 2021-02-03 16:14

So this is what I need to do before my traineeship ends.

  1. connect android app with the database from a website
  2. store some information into the database
1条回答
  •  无人及你
    2021-02-03 17:00

    1) Create an SQLite database (Windows GUI SQLite prog: http://sqliteadmin.orbmu2k.de/)

    2) Put it on a server

    3) make a php script that will update / read your database (on the server)

     query($query);
    
      echo DONE;
     } else {
    die($err);
     }
    ?>
    

    4) Call this php script from your android app

     http://yourserver/yourfolder/yourscript?yourRowId=1&yourUpdateVar=3
     http://yourserver/yourfolder/yourReadScript (parse html response)
    

    Done

    That's how I'd do it in 3 weeks :-)

    OOI were's ur traineeship @?

    0 讨论(0)
提交回复
热议问题