Sync sqlite database from sql server [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 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.

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.

The optimal way of storing data from an android list, then exporting it to sync with a master 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 6 years ago.
Improve this question
I'm basically creating an android application which takes around 8 forms (forms consist of EditText field and CheckBoxes) and will store them in a database, so that it can be later synced/added to a pre-existing database (Microsoft SQL 2008).
Which would the best way to store and sync (maybe daily or weekly) data to a pre-existing database in my case. I do not have much experience in android backend, as I've only ever worked with shared preferences to store data locally, so a simpler solution will ease this process. Cheers!
Edit:
TLDR: This question was asked to find out, which route shall be taken when one needs to store data taken from a form filled by the user so that it can be later synced with an existing database (which in my case is a Microsoft SQL 2008). The main aim of the android application was get the various databases and push it to the cloud.
As of 24/1/17: I've created a SQLite Database and have begun storing the data, I'm still not sure which method would be the best to export the data. I will keep on documenting the progress.
You could look at azure cloud services link, you need some knowledge about odata.
or
You could try firebase link, understanding of json is required.
Because you have knowledge about sql I suggest you have a look at some tutorials for linking sql with azure or sqlite with azure.
Use a POJO and store them to firebase. Check this and this or watch this video. hope it helps.

Database for an Android App [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 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.

Using SQLite or SQL with PHP [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I am working on an android project that uses an offline database. When it is connected to internet, the database should be updated. Another one of my requirements is that the database should be able to connect to SAP. Which database is better to use? SQLite or SQL with PHP? Any suggestions?
Assuming you want to create a database on a server, you should probably go with MySQL (SQL is the query language, MySql is one of the most widely used database engines). According to this thread, SQLite will only support one writer at a time and is not mean for "enterprise level" data management. However, it is faster and has less overhead, so if you did need a db on your mobile application, I would go with SQLite
SQLite is a lightweight version for mobile so it is the best choice for an offline mode.
Firebase is used to store data online and sync them with every connected clients.
See firebase.google.com
There is a Getting started section for Android, iOS and web platforms.

how to move data from one database (main serevr (sql)) to another in android database (local (sqlite)) [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 need to move data from one database to another , both databases are of same schema, only thing one database is will be in server and one will be in application (local sqlite database)
There are heaps of good tutorials for achieving the syncing and communication between an Android App and a server (via web service) around:
first
second
third
Just search for "android php (my)sql" or maybe "android jsp (my)sql" if you go tomcat or some other java server.
One of the most promising way is to create an app to sync database over server to local database. It'll take more time but would be working. For this you need to create a web service.

Categories

Resources