This application will be my first application that I am planning publish. I wrote application and it works on emulator with database. Users file(xls,doc,img) input will convert to byte and uploaded as BLOB. I used SQLITE for database. The problem I have is how would I publish this application with database. As I search I saw something called cloud-based database. Do I have to use it or are there any easy way to do it? We are going to keep at most 1 GB data.
The application will work on Android and in future it will be on IOS.
Thanks in advance.
You can use this good component to ship your app with a preinstalled database https://github.com/jgilfelt/android-sqlite-asset-helper
Related
I've build a website and used https://gonative.io to create my Android app. This works fine as long as I keep my Website online. I want to make the app work offline.
In my .apk file all the data from my website is stored but is unused as far as I know.
Maybe someone here can help my.
Thank you for helping me.
Ronny
If you want to make your app work in offline mode too, then you can use sqlite database. For this you can store all your data received from the website to the sqlite database and when you are offline you can always fetch your data stored in the database. More details on implementing sqlite database in android can be found here
I have a 15mb database .
I need to encrypt it , so it can't be readable easily .
I'm using SQLCipher , it works fine for a new database but I've made my database and I need to encode it now . How can I do so ?
My database is in asset folder or will be downloaded when user runs the app for the first time, I don't want my app to get data from internet because it should be an offline application.
How can I encrypt my database with all it's data?
You will want to use the sqlcipher_export(…) function, specifically example 1 found in the documentation here. You can also find an example of this within the SQLCipher for Android test suite here.
I see a sqllite database in another application, why can't I just just drag and drop from that application to mine in the eclipse environment? that way I can use data already in that database?
Android doesn't do too well with using an sqlite database file directly. Generally the way to go around it is to package an sqlite database as a resource and on first create of the app to load that resource and then connect to it and then copy all the data out of it. The downside of this is you are essentially doubling all your data.
If you are the publisher of the other app then you can list the database as a shared database to share between your apps.
Share SQLite database between 2 android apps?
Noone has written an Eclipse plugin that does that. You can write one if you feel it is both useful and worth your time.
I followed instructions on http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ and succesfully inserted sqlite database on android device so user doesnt have to download data to start doing somethnig. Problem is I don't know if this trick will work on all Android devices. Does anybody have any bad experience relating to version of device, version of database or something to think again about this method? Would it be a problem if user moved app on SC card?
I have used a preloaded SQLite database in my Android applications without any problems.
I don't see any reason why doing this would be incompatible with certain devices as long as your SQLite database is compatible with the version that Android ships with. Android ships with SQLite version 3.4.0 per the android.database.sqlite package description in the Android website.
Hope this helps.
I had problems with this because my database was too large for many devices. You have to either save to external storage or download your database on-the-fly. The biggest disadvantage to storing your database in the APK is that you essentially double the size of your app at runtime.
I am developing an android program for my university. I am confused about which database to use.
What I want is that when the user is connected to the internet the program will check for any updates in the backend database. If there is any, the program will sync it with Android device.
Let's assume that after while the user opens the program in place with no internet, the program will work just fine because the file is already in his mobile.
I chose Access and created .xml file and by the help of this site: XML resources in android. I learnt how to read it.
Actually this program is my senior project. I dont want the judges to ask me why didn't I use MySQL or SQLite.
Which database system should I use? Is Access the right database system to choose?
I want to do a program that looks just like Univ of Kent program.
Parsing XML could take time, also in XML you have no choice but to load the whole file.
SQLite is fast, simple to use and very dynamic.
Android offers a very simple SQLite API. Androoid SQLite API
If you are interested in reading more about all the data storage types in Android visit this link
It depends upon your requirement. lets say you want to build something which handles and stores the data on your device locally then SQLite is a good option (you can use firebase as well).if you want to do some sort of calculation on you data on a remote server then firebase is a best choice .
by using firebase you can store your data generated by your users and then if you want you can carry out some analytics as well.
i would prefer Firebase .