If we have two different mobile users for same android application, and each of them is updating the some data in database table. I want to know how they can know each other's updates and how can they share a database.
How is sharing and syncing of database implemented on android?
Related
I have an app with a sqlite database and user data. I have made a new app but it uses the same structure and I would like to migrate the data from the first app.
Both apps need to be in the app store, therebefore I cannot just update the app.
Is there any way to import/export the database to another app?
I checked out Room https://developer.android.com/training/data-storage/room
but I'm not sure if it's possible with it.
Thanks!
Let's imagine one application installed on 10 android devices, each one has about 4-6 different users. In the same time there must be one some Super User (second user type) that has an access to that database with all rights. Tell me please:
Is it possible to store and sync some session's information of every user in one unified realtime database using Firebase?
And based on the principles of safety, does Super User have to have some second application to get access to that realtime database or it's possible to create application with 2 kind of users (and their rights)?
Thanks a lot!
Yes, that's one of the main reasons why the Realtime Database and Firestore(Beta) exist. You can store your user information in one of these databases. Get started here.
Yes, it is possible to create an application with 2 types of users and different rights. You can process this on the client side (android code) and on the firebase side (to protect the database).
I have 2 android apps and a web app catering two user groups,
android app + web app for mostly writing data to the database
another android app for retrieving these data
I need my applications connected to the same database, I want to know whether this is possible with Firebase and is considered valid.
I've seen older posts with workarounds but I need to know whether the new Firebase version supports this out of the box.
This is my first time trying to integrate Firebase into one of my projects therefore some guidance on achieving this task would be really useful.
Thanks!
As long as I can remember Firebase supported this even before the "new Firebase 2.0". Following just an excerpt taken of the Realtime Database feature list:
A cloud-hosted NoSQL database. Data is stored as JSON, synced across
connected devices in milliseconds, and available when your app goes
offline.
Accessible directly from client SDKs, or from your server with the REST API
tl;dr
That's totally possible with Firebase.
I am a newbie in Android Development, I want to build an app where user from anywhere can register (Userdata should be save in sqlite db) and after registration n login process user can see all the other user list who are register.
Is this possible using android and sqlite db. I search many times on google but all i found tutorial for sqlite. I started to follow the tutorial but i am confuse as it is stated that Sqlite can only save APP data and private data of user. How could i make app for register user from anywhere. Suggestion and links for another method to do that is also helpful, Please Help
Thanks in Advance
SQLite can save only data for specific user in the specific device of the user. No one can access SQLite database which is stored in my device from any other device. Such scenario can be implemented by centralized system where all the details are stored in Mysql, mongo DB or similar. These databases are stored in centralized system so that it can be accessed from anywhere by anyone as per authorization settings. It is accessed by the internet.
So as per your requirement go for centralized system where database can be used by using web services. Web services can interact with server in which database is stored and can give you desired output in form of JSON or XML.
In a normal android app ,we can code and create a sqlite database for an android app,But when we are putting this app on play store and multiple users are using that app, then how can we provide same kind of data to all users as database(sqlite) we made is only to that user in his phone.
I am new to android programming so not sure how to maintain a centralized database.
If you want centralized data for all users of your app, regardless of the device, then you'll need to use a cloud type API (e.g. web app backend accessed via REST API). Anything you put in a SQLite database on the device will only be accessible by that app on that specific device and for that specific person. On Android devices with multiple people, such as a tablet with multiple profiles, each person gets a separate instance of your app and data.