Search code examples
androiddatastore

How to save data online from all users using your app in android


I want to ask a question from my app users and get their answers but i don't know how to collect those data. Please help me I need it.


Solution

  • You can use a form inside your application. And, ask users to fill that form. The forms needs to be connected to an database server. You may use 000webhost.com (free) to create your database. Just populate the table in database from the user response. For this follow the following procedure:
    1. Create a online database (000webhost.com)
    2. Write php code to insert data into the database form and save that php on the file manager on server.
    3. From android create a async task to execute that php.
    4. Pass your parameter or user response as request attributes while executing the php.
    5. php will save user's response on your server.
    Now you can access that database from anywhere.

    Note: This may require an internet connection in application.