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

Related

What should be used for Android app: Parse SDK or Parse RestAPI? [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
My application has some complicated database operations, Almost all the sql queries i have to use.
If I want server based access to my data, what should i choose to communicate with Parse server: SDK is good, but I know there is an API as well.
I think SDK will not provide a lot of accesses, operations like email verification, complex db operation can't be handle through it. and I don't know anything of server side coding.
Please suggest , Thanks in advance
I would suggest you to first read these
All the limits of parse
Parse SDK review
The second one is for iOS, but it's basically the same for Android. (I basically copied Objective-C code to Java, especialy the requests)
If you are sure you want to make complex app on Parse, then I would probably suggest to go for SDK. It is not that restricting, but will probably be hard to understand in the beggining, but you can do whatever you want if you setup good arhitecture from the start. :)
(But. It's only my opinion)

Access global data in iOS/Android [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'm creating a website with an according app for iOS/Android and I'm doing some research for how I should do everything. I need to be able to post data from the different platforms and I want to access the same data from every platform, kind of like a wall where ypu can write stuff. I'm thinking that the data needs to be stored in a database but how do I access i.e. an SQL database from iOS/Android?
A simple research would've brought you a great tutorial on how to link a MySQL database through PHP to an Android app.
You'll be required the basics of PHP though so you may want to study a bit about that prior to starting.
Take a look at parse.com. This likely provides what you need without having to set up server with a database, etc. You can access your data on parse.com from iOS, Android, your web site, and a number of other platforms should you need to.

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.

Android - guidelines - app with online database [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 6 years ago.
Improve this question
I want to create an app that is based on the data stored on remote database.
What i have in mind is to use a VPS i have to store the database. Then the app will, on demand, access (and update) the data on the database.
How should i set up my VPS in order to do that? Right now i just have a MYSQL server running.
Edit: I want to know what are the best practices i should follow in order to have an android app based on an online database.
Can i access the db directly from the app?
Do i need anything
besides the database server to assist the communication of the db and
the app?
Should i use, for some reason, another db instead of mysql
(faster,more secure, easier to connect)?
I am new to this and i would like some general guidelines.
Thanks.
Can i access the db directly from the app?
As far as I know, no you still cannot access MySQL directly from Android. It has been a year since I did Android development, but you will most likely need something sitting in between (like a RESTful service, see http://phprestsql.sourceforge.net/).
How to access online mysql database in android?
how to access external mysql database in android?
Do i need anything besides the database server to assist the communication of the db and the app?
Yes. See answer above.
Should i use, for some reason, another db instead of mysql (faster,more secure, easier to connect)?
That is up to you. There are some NoSQL solutions that offer a RESTful interface built in (I think CouchDB does this, MongoDB, etc...).

How to connect an android app to a remote database? [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
I've been doing my own research but to no avail. I am doing an android app which contains listviews and it needs to query data from a remote database. I would really appreciate it if someone could share good tutorial links that teach that kind of stuff. Sorry, I know this isn't a proper question but I really need some help. Thanks.
You can refer to this tutorial
Or refer to this
How about a simple web service in the middle?
It helps to prevent you putting database username/pw directly in the app too.
App -> Http requests -> Web service -> Database
The Http requests can be done via Android HttpClient
The web service can be in php for example. (There is a lot example for php to database on google.)
To communicate with the remote databse, you require web service which can fetch data from or suit data to remote database.
I am not sure about which web platforms are you using currently but I would suggest you to go with REST with JSON.
This is the typical case of SyncAdapter with it you can use the remote database from your content provider as a regular DB.
I have done it and it works well with only few complexities.

Categories

Resources