Search code examples
androiddatabaseonline-storage

How to load data in my Android app from online resource where I can add/update content easily?


I want to update content/news in my app based on any online resource that's possible, a website, database or something similar where I can manually update/add content. The underlying purpose is to connect my app to that online resource, and reflect changes in my app content, whenever I update that online resource.

Right now I don't know what should be that online resource and how should I connect it with my app.

I would appreciate anyone coming up with any form of suggestions/solution.


Solution

  • Updating App Content means retrieving data which is stored on server in some database.

    We can store and retrieve data or any content with the use of Web Services.

    With the use of Web services you can parse the data and display it in your application.

    You can also develop an Admin Panel for managing all your resources which will be then reflect to in your app.

    These above things are possible using Networking libraries like OkHTTP, Volly, Retrofit etc. which gives you response in form of JSON (JavaScriptObjectNotation).

    For Refrence Please visit :

    1. OKHTTP > https://square.github.io/okhttp/
    2. VOLLEY > https://developer.android.com/training/volley
    3. RETROFIT > https://square.github.io/retrofit/