1

I am new to android. I want to develop weather application.In this i want to use mongodb to store the weather details upto one year. Is it possible to do. can you please help me.

Community
  • 1
  • 1
Madhu
  • 79
  • 1
  • 5

2 Answers2

0

I don't think there is a mongo port for Android. I heard only one no-sql db for Android, that is realm.

But you can connect mongo through a webservice and use it in your android project.

Istiak Morsalin
  • 10,621
  • 9
  • 33
  • 65
  • Thanks Jason Bourne. you said we need to write webservice. can we write webservive in either PHP or J2EE . – Madhu Oct 07 '15 at 03:08
  • Yes, webservice can be written in python, spring java , or php . @Madhu – Istiak Morsalin Oct 07 '15 at 05:03
  • http://www.codejava.net/java-se/jdbc/java-connecting-to-mongodb-database-examples http://www.journaldev.com/4011/mongodb-java-servlet-web-application-example-tutorial – Istiak Morsalin Oct 07 '15 at 11:40
0

MongoDB has downloads for several operating systems. However, Android is not one of those systems.

People use MongoDB as a "web service" for storing data, but it does not have any features to support multi-master replication or your occasionally connected mobile scenario.

If you need these types of features, you'll want to check out CouchDB which specifically targets this scenario with Android Couchbase.

Source : MongoDB on Android

Community
  • 1
  • 1
KishuDroid
  • 5,411
  • 4
  • 30
  • 47