I recently wrote and installed an Android app on my device. The app wrote data to the local SQL database and uploaded this data to my webserver. But due to network problems, there are a few records that were skipped, so they aren't on my webserver.
Now i want to get those rows (or my full SQL database) from my android device. But my question is how?
If I write a new version of my app and reinstall it, then all my data will be lost.
Isn't there a way to access my SQL database without losing my data?
My device is not rooted, so those backup app's won't work...
You may get access using DDMS.
Related
Offline application with user data that has to be saved on the device but also possible to delete app and reinstall on other device and use same data there.
Can room database be used fully offline?
Written in kotlin
I have a question about meteorjs and cordova mobile app development: will mongodb work locally on my mobile app (built with meteorjs and cordova) even if I turn internet connection off ?
My app will require only locally stored data (but need more space than localstorage provides) and I'm not sure how Meteorjs-cordova apps works after compilation to mobile (android & iOS) - does it have its own MongoDB instance inside it?
And if yes, is it possible to run it in offline mode?
Scenario:
internet connection is needed only on 1st run to download data, next time You can load everything locally and don't need to be connected to the internet.
Any information will be appreciated.
Your mobile app won't have an exact MongoDB instance on it, but you can use minimongo to store data in-memory on the client-side. So if you pull data from your server MongoDB instance, it'll be stored in minimongo until your app is closed. The data isn't persistent so you'll need something like this package to save data between launches.
See this answer for more information
if we store data in sqllite database in android, then data will get erased if this apk is installed in another phone.
Then how does offline dictionary apps store data which is accessed by everyone having the app.
I might not fully understand this question, but if you are storing data in a SQLite database, it will only be persisted on that device; it has nothing to do with the apk or installing the apk on another device. The application will attempt to create a new database on every device it is installed.
Installing the apk on another device will not copy the database from one device to another.
I have a desktop application in .NET and I want to make an Android application which will sync its database to the desktop without using the Internet. Is there any way to sync this database over a USB connection?
In Android I'm storing the data in a SQLite database.
Yes you can. You need to create your database using SqliteDatabase.create(). And give to it SD-Card path. then you can download this file to your pc, manipulate it and upload it back to to your android device.
I am new in android development. Currently, I facing problem to choose a proper database software that can keep the information of a user registration details for a taxi service mobile apps.
This app require user to login and the details for both the driver and passenger will be kept in the same database. There will be a admin control the system via the web portal for this app. I am not sure whether SQLite will be the suitable database or is there any other suitable database for my project where the database can be accessed by both android phone and the web portal?
Thank you in advance.
IMO you're looking at this the wrong way.
If everything is going to be stored on a server then access data from the phone via a service.
You can keep device-local data using the normal SQLite DB. On the server side I'd probably use something else, like MySql, Postgresql, etc.