Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (50.2k points)

Does anyone know how does MongoDB works on Android?  Does it work locally and you the data gets replicated later? Does work only online with just a web backend?

1 Answer

0 votes
by (108k points)

You can use MongoDB to store and retrieve the data from the android application. As you must be knowing that MongoDB is a NoSQL database that can store any kind of data(structured, unstructured, semi-structured). So using the MongoDB database to store the database from the android application we will be using MongoLab. Refer to the following steps:

  1. Login to the MongoLab for storing the database.

  2. Create a database and inside that database, create the collection in which the data gets stored.

  3. After that, you can easily obtain your API key from the MongoLab.

  4. Now store the data inside the collection of the database.

  5. After storing, retrieve the data from the collection of the database.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Oct 18, 2019 in Web Technology by Sammy (47.6k points)

Browse Categories

...