MongoDB.live, free & fully virtual. Register Now MongoDB.live, free & fully virtual. Register Now

Does anyone have a sample Android Studio project that interacts with MongoDB

Hi anyone. I have been looking at the tutorials for Android Studio interacting with a Mongo DB and it is extremely confusing and my team has put over 10 hours just to get basic input from Android Studio to MongoDB.

Our app allows the user to log in via email login in Android Studio and we have a Mongo Atlas. Does anyone have a very basic android studio project that could have some super simple interaction with MongoDB. Literally anything, just to get us started.

We have looked at the docs, but have ran into problems with Sync and such.

Hi @John_Owens - you’ve come to the right place!

We build the O-FISH application with Android, and connect to a MongoDB Atlas backend. We are using Realm Sync, which is the recommended way to connect a mobile application to an Atlas backend. The code is at https://github.com/WildAid/o-fish-android

Can you say more about the Sync problems you’re having?

1 Like

I completed the task tracker tutorial and got everything working. However, I’m glad to know that I’m not the only one who feels Mongo Realm has a steep learning curve.

My advice is to keep at it. I’m not there yet but I’ve learned lots of things I didn’t know previously and I feel I’m close to having it all come together in my head.

1 Like