The best way to store JSON data without creating webservice [closed] - android

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I'm newbie in android and I'm writing a transport scheduling android app.
I have a JSON data with a huge structure (time, bus stops list, train-stops list, routes, etc). The scheduling changes 2 times per year (summer and winter times).
To write my own API is too hard for me.
Can I store JSON data in SQLite or SharedPreferences? Or the best way to store in service like parse.com and than download it to device ? Or I can store it in the file?

I will recommend, best way would be to parse the data at beginning. create required table in sqlite and dump the parsed data into sqlite database. Later you can query and fetch the required data from the sqlite database.

I use RushOrm (http://www.rushorm.com/) to store easily all my data in the sqlite database :)
Try it :)

Related

How to view data, that are parsed from the MySQL database, in offline, using 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 5 years ago.
Improve this question
I am developing my school's timetable app for android. I am getting timetable data from MySQL database. -> I have access to the timetable, only when I have an internet. But I want to make timetable accessible without the internet. I read that I need to save data from MySQL to the SQLite, and then use them. Can you, please, give me links to the samples how do to that?
I can point you in a direction that you might want to go in, you can try to use a ContentProvider to store and read data on your device offline. Once you create your ContentProvider, make use of your school's API through an AsyncTask (provided you have permission to access it) to format you some JSON to parse in Java with a library like Gson.
Basically this relationship becomes like this:
(Server)----JSON---->(AsyncTask)---->(Parse JSON in Client)---->(Move Parsed JSON data to your app's ContentProvider).
There are numerous articles on things like this:
ContentProvider example:
https://developer.android.com/guide/topics/providers/content-provider-creating.html
(Udacity also has free videos describing ContentProviders and JSON retrieval and parsing.)

SQL or Firebase for Android application [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
it's my first post on Stack and i need to have a database to store some information in a server and i don't know what is the best approach to use, i have the choice beetween SQL DB and Firebase. which one will you advice me? keep in mind that maybe i gonna need to send some request like "SELECT * FROM s INNER JOIN s1 WHERE c.."
thanks
look at this
and look at this too
The Firebase database does not have the equivalent of SQL's WHERE id IN (1,2,3). In the case of selecting by ID, Firebase's way of retrieving items is equally fast.
In Firebase you must write little bit hard code. And you will get and send data in realTime.
But in SQL if you are not using sockets or etc. you must make call to get data.
For your case , as I see you are beginner, use simple SQL database. Loopj or Volley library. Make practices with JSON.
Hope I helped you.

Database for Android App [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
How and where I can maintain my DB for my android app. I know we can use sqlite DB for android apps but, I don't have any idea of Storing the DB at some other location and then accessing it on the app.
Example Structure:
I want to know, where and how we can have DB at some different point of location, Do I need to buy space or rent? Or there are any other ways (Having DB Server at my own Desktop and accessing it via IP address. Will there be any difficulties or dependencies) I believe we can access it by creating a connection to the Db and writing queries to fetch by using Http Get and Post or Put methods.
If yes, then can we use SQL Server Management studio 2008 or what would be the simplest & the best to work with.
Use parse.com as a backend services.Easy to use and simple. follow this answer
Use realm, please.
https://realm.io/
It is much easier comparing to sqlite.
You can check the usages at https://realm.io/docs/java/latest/

which database should I use for simple log in register form in android [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am a beginner and I want to develop a chat application. The first page have log in and sign up options. Every user have username(using in chat). So which database should I use? I want to hold e-mails, usernames and passwords. I really confused with databases. Appreciate all helps.
If you have a little information to save like UserName and Password then SharedPreferences is good for you.
If you want to store a little huge amount of data for only your app then SQLite database and data you want to share in other applications also then ContentProvider. Both are here.
If you want to maintain your data both in server side and client side then you can use some Global Databases like Oracle, SQL Server etc which are maintained by your server site with some Web Services or Web Apis.
NOTE: You can use SharedPreferences and SQLite when you don't want to share data out of your application.
As for the Chat App I think you should use a Database which can be maintained by your Server Site through a Web Service/Api.

NoSQL DB for Android other than MongoDB and CouchDB? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Is there any better NoSQL DB for Android other than CouchDB and MongoDB. With couchdb the issue is its start-up time on Android devices, which take 5-10 seconds(is very high).
On the other hand I found TouchDB which is not yet mature enough to use, right now.
I want to store whole data in a NoSQL DB in JSON format(both online and on Android phone). I there any DB that has start up time in milliseconds and stores data in JSON format?
Two possible options are:
BerkeleyDB
UnQLite
you have many options, you can use iBoxDB.java if you're using java, or iBoxDB for mono if using c#.
iBoxDB stores data in Map format, it is easily converted to JSON. iBoxDB includes Replication(example in Test.java), so if just want to doing Sync data, don't need JSON.

Categories

Resources