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 4 years ago.
Improve this question
I need to have an android app that can read and write to an online database, and a windows pc app that can do the same. Basically I want to view/modify a set of data from the database from both my mobile and pc.
I considered using firebase as the online database for my android app, but I don't know if can query the data from my windows pc, if say I am using Qt to program a windows app.
Please help !
Even it's a broad question a quick answer would be yes, you can query the data from your Windows pc. There is an interesting articole written a few moths ago named Firebase Database REST API for QT.
Take a look a this post for a better understanding.
Related
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 3 years ago.
Improve this question
So I basically want the database on my pc to be accessed through my android application, (on multilple android devices at max 3), doesnot matter if not connected to internet just need that for my college project.
As previous answers have mentioned, it's not advised to connect directly to a database from an android application and use of a web service would be better suited for this purpose.
However, if this is absolutely necessary you can use the JTDS drivers for android which will allow you to connect to either a local database hosted on your machine, or a database hosted elsewhere.
Links to the drivers can be found here.
It shouldn't be too hard to find a tutorial on how to add the driver to your project however if you struggle to find anything, let me know.
Normally this would be done with a REST api, then it would make HTTP calls to the backend which accesses the database either located on a server or in this case your pc. However accessing the database directly is not advised.
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 6 years ago.
Improve this question
Can someone help me how to properly access MYSQL database using JDBC.Most tutorials seem to be written in Eclipse when I am working on Android Studio. I am also unsure of how to get the ip of mysql server db.
Any help at all would be appreciated.
I am also working on a linux enviornment if that helps.
If its written for eclipse it should be trivial to do it in Android studio without help. Eclipse vs Android studio doesn't change the code.
I would recommend against directly connecting to a database in any app. The problem is that to do so, you have to put the password to your db on their phone. At that point you've given up control of your database, anyone can decompile the app and directly connect to your db. You should access the db via webservices instead, which allow the login info to never leave your hardware.
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 7 years ago.
Improve this question
I am working on an android application for my institute. I have to connect my app to the existing database of the college, although there is no API written. When I contacted the administration for help then they only handed me a SQL connection string and told me to write the API myself. I want to focus on the application only. Is there any way I can skip the API writing and still connect to the database easily and quickly??
As per my knowledge you cannot access database without using API. You can create your own database in SQLite but it will be local (offline) database.
One more thing, you can migrate database from one platform to another, but you will need an API to access data.
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 am new to mobile back end development . I am trying to figure out - how to sent data / push data from a mobile app (andriod apps ) to a mongodb. Kindly suggest . I have hosted mongodb in AWS
Please suggest
Until recently, mongo was not supported on the Android platform, and there was no good way to link a mongo database to an Android application. However, it seems that support for Android has been added in the recent versions of the MongoDB driver. A thread discussing the issue, as well providing a working code sample, may be found here:
How connect Mongo DB with Android application
As a side note, when utilizing this forum please try to follow the rules in regards to asking questions (https://stackoverflow.com/help/how-to-ask); questions such as the one above, which show little to no research effort or an attempt at a solution, will largely get ignored, put on hold, or deleted.
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 am hopefully going to be embarking on producing a ios or android app that shows the x read of a till from a remote location over an internet connection. My question is wether it is possible to access a text file or xcel file, take the contents of the file and pull it to the app using android and ios? I have a way to get the x read to either a xls or txt file but need to know if I will be able to access it using a ios or android app?
Apologies for the basic explanation but I am quite new to this.
Yes, it's possible.
You will have to write a server program that runs on the PC, and communicate via network sockets.