1. Download our Official Android App: Forums for Android!

Apps SQLite help

Discussion in 'Android Development' started by Yathushan, Aug 7, 2011.

  1. Yathushan

    Yathushan Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    36
    Posts:
    205
    Joined:
    Jan 3, 2010

    Jan 3, 2010
    205
    7
    36
    London
    Hey all,

    I am trying to setup an database on my application. I have done the simple part of setting up the id, columns and names.

    But I want the application using the database to be able to fetch data from my remote sqlite server. I was wondering if anyone knew how to go about doing this? To make everything easier I have kept the column ids on both the remote and local databases the same.

    Thanks
     

    Advertisement

  2. QuackWare

    QuackWare Newbie
    Rank:
    None
    Points:
    16
    Posts:
    22
    Joined:
    Jul 14, 2010

    You can always go the easy way and create some sort of php script on your server that returns results from your database. Using java methods to execute a GET request you can then get the data and read it into your local database.
     
  3. Yathushan

    Yathushan Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    36
    Posts:
    205
    Joined:
    Jan 3, 2010

    Jan 3, 2010
    205
    7
    36
    London
    Okay so you create a new activity to get the data.
    But how would you go about saving the data requested into the local database in an automated fashion?
     

Share This Page

Loading...