Database for an Android App [closed] - android

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Hey guys I'm working on an Android App with Android Studio and I need a database like mlab(mongoDB). But Android doesn't support mlab. I can't just use SQLite because my data has to be saved also when my application is not running.
For example if my user signs in, their profile photo and other information should be saved in the database and I also want to code something like a friend request which also should be saved in the database.
I googled so much but I didn't find a good solution.
I hope someone can help me.

You asking about two separate things. mLab is a Database as a Service which uses MongoDB, while SqLite is just a database.
You can save data while your application is not being used with either option, simply look into background Services and other parts of the Android API that allow background tasks.
If you want to save data to a database that is not on the device, you'll need to look into the documentation of the service to determine the best way to interact with your database. In the case of mLab, they allow both custom drivers and a REST API for interacting with your database.

Related

Can we Use Multiple Database in a same Android Studio Project? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Can we Use phpmyadmin and Firestore in a same Android App ?? Assuming if one part of the App contain a realtime feature (Chatting App),for which Database is Firestore And other part contain simple user features like viewing the stored data in Database(eg. Wikipedia),lets say it's DB is PhpMyadmin. will it be posssible ?
Yes you can. I did that recently in a project. Firebase is very easy just check the documentation.
You can actually use Firebase for everything. including storing and retrieving data. but, if you want to use another online DB, Web server or API that's totally doable.
I would recommend that you do a separate demo project using firebase and another Retrofit for example.

best way to get the data from database [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I was designing the classified app in android which takes the data from the db hosted at run time. I have designed it and it is working fine but it is very slow as application has to fetch the data from the server and which take much time. I want to reduce the time by some way that user get the data immediate and also can get the data offline with out internet.
Can any one suggest me the best way for store the data in the mobile app or any other way?
can i create a xml and store it on user mobile?
Please let me know.
thanks in advance.
itin
One way is to do this by ContentProvider.
Another way is to use a framework like ORMLite, an Object Relational Mapping.
In my opinion you have two good methods . Fist one ;use store procedures ,triggers and functions to get data from database .Second method get data by using service like json do not use xml(soap).

Sync data to server in background like dropbox , evernote does [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am building a photo app in android where user will click no of photos and send it to server and if internet goes out in the middle of uploading it will save the photo in sqlite database.
Now i want that photos to automatically uploaded to server whenever the internet came back even if the app is not running. Can anyone suggest how it can be achieved?
I saw dropbox automatically upload the photos even the app is not running. I want similar functionality. Please suggest a way.
all you have to do is run a background service which will check if your database table has rows in it then if exists it will continue the upload and delete every row after it's completion from the table
EDIT
your service can't remain working if your app is fully closed from the Manager, I suggest you use the "Syncing to the Cloud" functionality check Here it contains the neccessary mechanism Majority of the apps use it DropBox also I think

Access global data in iOS/Android [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm creating a website with an according app for iOS/Android and I'm doing some research for how I should do everything. I need to be able to post data from the different platforms and I want to access the same data from every platform, kind of like a wall where ypu can write stuff. I'm thinking that the data needs to be stored in a database but how do I access i.e. an SQL database from iOS/Android?
A simple research would've brought you a great tutorial on how to link a MySQL database through PHP to an Android app.
You'll be required the basics of PHP though so you may want to study a bit about that prior to starting.
Take a look at parse.com. This likely provides what you need without having to set up server with a database, etc. You can access your data on parse.com from iOS, Android, your web site, and a number of other platforms should you need to.

Sync sqlite database from sql server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am working on a android application in which i have SQlite database on my android device and sql server is on cloud.i want to sync both sqlite db as well as db on cloud.i want If I change database data in Android then It will change data on cloud server.when i change data from server then it should change data in android device. sync will run in 2-3 days when internet is available.i did google and got a alot of link regarding this,but i dont have a clear picture in mind that ho to do this. 1[google](http://www.quickconnectfamily.org/qcdbsync/docs/java/org/quickconnect/sync/SynchronizedDB.ht ml).2googleanyhelp will be highly appriciated if some1 giv me any sample code to achieve this.
I thought you have to create an account in account and sync section of android and have to make a service that will keep track of time and data and you have to put a flag or a time stamp when every sync occur and in sync process you may have to check whether the table data in both table is same or not. If any difference is found merge both tables and replace the duplicate entries.

Categories

Resources