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.
Related
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
I am thinking of doing a server that will be some sort of a webpage (to display data) and also a server that can send information to android app.
I currently know a bit of c++ and python. And android java a bit more. I was allready looking at java and tomcat but not liking the idea...
What are the best metods to make a server that will be able to send data to mobile app.. I dont need to communicate both ways only that android app becomes information.
EDIT
Sory I wasn't clear enough. A server needs to acces services and get data from the APIs and then it will save it in db. But the part where this server needs to communicate with android app is unclear for me.
If you only need to host a website that displays data, without the need for server processing / database, you might want to take a look at GitHub Pages. You will be able to host static web pages for free.
Else, I would recommend you to learn PHP. Purchase a web domain and hosting, it usually comes with database for you to store data.
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/
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)
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 8 years ago.
Improve this question
i want to build one app which can upload data to the website database. Now i using XAMPP for my android database. How to upload data from android to the website database? Can i use XAMPP as well? Thanks
Regards,
YY
I would recommend creating a PHP RESTful web service that connects to your MySQL database.
Transferring your data in a JSON format is the most common way, depending on what you have to upload.
There are several ways to call the web service in Android. You could go basic and use a HttpUrlConnection to do the job, or use libraries such as OkHttp. Just remember to run web service calls (or any network process) in a different thread by using an IntentService, Service, AsyncTask (watch out, pitfalls), AsyncTaskLoader, etc...
Don't forget to check out this on the Developer site as well.
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.