MongoDB with Android Studio - java

ALL questions I saw here is too old for understanding so I'm asking a new one.
Im building a social media app that stores data, and will ,at the end, send notification even when the app is offline.
Is MongoDB is a good choice to use with Android Studio to my project ?
I understood that I need first to connect it to Realm and by Realm I use MongoDB.
Do you think its a good DB to use with Android? if it is, do you have any good guides for it?
If not, is there any other DB to use that is easy to learn\use?
PS
I dont want to use Firebase, because of its pricing.
Thank you .

MongoDB is also available for android
The only problem is that it does not have well-structured documentation for android..
I recently managed to connect my android application to the remote database
here is a sample unit application
https://github.com/i-sachinkumar/MongoDB-for-Android
Its readme file contains all the steps to be followed in the back-end as well as in the android studio
Enjoy

Related

Environment set-up android mobile application

I have to create an android mobile application for college. On paper I have adequate modules completed to be able to do this, however I struggle with coding and simply need to complete this module to graduate.
I am going to use java to code my android application. I now need to set up an environment that can connect to a database. I have some experience using netbeans but did not pay a whole lot of attention over the years the database connectivity and usually had someone else do it for me.
My app is going to be a lottery purchasing ticket app.
My question is: What is the best IDE to use and what is the best db to use for my lottery application.
Thanks in advance.
For Android, you can use Android studio: https://developer.android.com/studio
and for database android itself provides database: https://developer.android.com/training/data-storage/sqlite

Do I need a server to send PDFs created in my app to the same app (different account) on another device?

Beginner here.
I'm creating an app in Android Studio (Java) where the user can create and store PDFs on the app and send these to another account on the same app, on a different device.
The user will have a list of contacts stored in a database.
Do I need a server to do this? Are there any tutorials online showing one how to code this? (I've been searching for hours but can't find anything specific to my problem. Maybe I'm wording it wrong...)
I was looking into Firebase but I'm completely lost on where to start.
Thanks!
For simple use cases you don't need a server, you can use firebase instead. Currently, they have a storage feature that lets you store files on their servers and retrieve them later.
Here is the official documentation firebase cloud storage
One thing you could do is upload the file from android device and download from another one.

How to create an online database for an android app?

How can I make an online database for an android app?
I am making an android app about the impressive speech and I want to make a database storing accounts of users so they can retrieve their progress anytime anywhere. But how can I make it online so it is accessible from every device?
You have to use a service such as Firebase or write a backend-server which runs a database (for example using Spring Boot and a simple H2 database would solve it).
the best solution for your problem is to use Firebase and especially Firebase Database.
Another solution is to use Parse Server.

Resources for developing Android apps with databases

I'm looking for some resources on developing Android apps with a connected remote database safely and securely. The idea is to have users log in to a personal profile which can be populated with text data, files and images. The app will also have geolocation, text/video chat and some other features but first things first.
I was reading it is bad practice to connect to a remote database, say MySQL, through an app directly and that something called REST API is the preferred and safe method of communication. Are there any good guides/examples on how to connect to to a remote DB in this fashion? Tips?
I have have some school experience in Java but I'm new to Android development.
Thank you!
Have you tried Google's Firebase?
You can learn more here:
https://firebase.google.com

Better way to develop a remote database driven android app?

i have a wordpress blog hosted over my personal shared hosting.Now i want to develop an android app for that blog so the users can use the mobile app to see what i am writing on my blog.
Like for example you can take mashable.com android app.
so basically i have experience in programming android aap but i am just asking this so i can code it in a better way.
i have 3 idea to do this now:
1.Use rss feed of my blog and parse it and display the contents but it has a issue that rss only display most latest contents.So whether i need to store the feed contents timely on android device so a user can view the previous most content also.
But i think it's not a good idea because it will unnecessarily increase the size of database and make diff copies on every device.
2.Just simply use complete java code to pull data from my web mysql database as per the user request and just display it over the screen without storing it locally on android device.
3.Develop some sort of API solution on my web server then send the data in json or xml format so i can use it on my android device(via java) without bothering to connecting to mysql server as a core part because that part already done by on web server and my api already sending data in required format.
So these are 3 idea i have now.So please suggest me a better one form these three or you can give any other idea.
I am asking this question because previously i never programmed this sort of mobile aap where i need to pull the data from remote server.
-Thanks
You can simply install WordPress Mobile Pack to display Mobile site of your wordpress blog/site
Or
You can check this link to find out other plugins: 11 Ways to Create a Mobile Friendly WordPress Site
Now, If you want to create an app then you can simply implement it by using WebView.

Categories

Resources