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

Apps [SOLVED]What's the best way to storage data?

Discussion in 'Android Development' started by GodLovesYou, Apr 3, 2016.

  1. GodLovesYou

    GodLovesYou Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    43
    Posts:
    255
    Joined:
    Jan 25, 2016

    Jan 25, 2016
    255
    43
    43
    Hey hey guys!

    If I wanna make and app and add a good amount of data and update that what is the best way or the best option to storage my data?

    I should use SQLite and make my database inside of Android Studio(for example) or use phpmyadmin?~
    The problem is, if I use phpmyadmin the users aren't connected with my database server and if they wanna login and register they can't do that.

    What can I do and what is the better way?

    Thanks and have a awesome day.
     

    Advertisement

  2. LV426

    LV426 I say we take off and nuke this place from orbit
    Recognized Developer
    Rank:
     #12
    Points:
    1,988
    Posts:
    9,176
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    9,176
    13,681
    1,988
    Male
    Software developer
    South West of England
    If you need the database to be accessed/updated by all the users of your app, then it has to be centrally stored on a remote server. So your app must be able to connect to the server.
    Is there a problem doing this?
     
  3. GodLovesYou

    GodLovesYou Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    43
    Posts:
    255
    Joined:
    Jan 25, 2016

    Jan 25, 2016
    255
    43
    43
    But I can do that using phpmyadmin?
     
  4. LV426

    LV426 I say we take off and nuke this place from orbit
    Recognized Developer
    Rank:
     #12
    Points:
    1,988
    Posts:
    9,176
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    9,176
    13,681
    1,988
    Male
    Software developer
    South West of England
    Phpmyadmin is a server side tool to administer a mysql database. It has nothing to do with your Android app.

    In order to connect with the server's mysql database, you can either

    1. Establish a database connection directly from your app or
    2. Use a web service implemented in php to query your database and return the results to your app
     
  5. GodLovesYou

    GodLovesYou Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    43
    Posts:
    255
    Joined:
    Jan 25, 2016

    Jan 25, 2016
    255
    43
    43
    What do you think it is the better way to connect my database with my users? For example, to login or register
     
  6. GodLovesYou

    GodLovesYou Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    43
    Posts:
    255
    Joined:
    Jan 25, 2016

    Jan 25, 2016
    255
    43
    43
    For the people that are interested in this topic, I found a good solution to this problem. You can use REST API which allows you to manage all the users data.
     
    LV426 likes this.

Share This Page

Loading...