we are designing an application for android which has to store the details which the end users give ,into the database in the internet or cloud, where all the admins can access the same database for checking purpose through another application specially designed for checking with that common database. is it possible?
if so what is the database i have to use for?
where i have to host my database?
since there will be more number of users querying at the same time i cant use sqlLITE, so what else i hav to use?
guide me since am a noob in web apps development.
guide me since am a noob in web apps development.
Ahh - cos what you need is exactly a web app.
The web app has a DB in the background, and makes a number of URLs available that your android app can call over the network. These URLs read or write data to the DB. Since anyone could call those URLs you need to pay great attention to security.
As for what to write this in, it could be anything. PHP, Python/Django or whatever. For your DB, you probably don't want to use SQLite for the scalability problems you mention - instead MySQL or Postgresql maybe. There are literally thousands of hosts that might be suitable, depending on what language you use.
Related
I will need to connect my Android App (which is being programmed on Android Studio) to a database. What I don't know, and Google is not giving any good answers, is how should I connect this App to a database. I'm looking for a safe way of receiving and sending data.
The options I know are: MySQL database, REST database and SQLite (but SQLite is an offline database, so it is not what I'm looking for).
Any help will be appreciated.
There are many online database that are 'safe' to connect to, MongoDB, Azure, AWS, Firebase, Oracle databases etc. The best one will depend on which bests suits your application. And all these are safe at least to the extent that depends on the providers, you also need to make sure your implementation is safe and best.
Usually the data transfer between an android application and any relational database is done using api. The api can be written using any server side languages like php, java, javascript using node, python etc. You can also connect to firebase firestore or other non relational databases. The choice is yours. For example, if your system is mainly doing read action and not that much write action then you can go with non relational database like MongoDB. If it has a lot of write action then choosing relational database like MySQL, PostgreSQL will be good.
I 've a theorical question about Xamarin and how to use MySQL databases on an App. I just need a database to store users for an app, the my question is: D I need a webservice for this? I know that is maybe the proper way to work with databases in a mobile app, but as I said, I just need to store users and allow that they can connect to the App using an account. Exist another method more simple to work with it? (I just need a table with the password, and the login).
Thanks in advance! ;)
Short answer, yes! The proper way to consume an database from a mobile app is using a webservice, if building this around your MySQL database is too much for your needs then maybe ask if MySQL is the right place for your data. There are plenty of web service
I have already an location based app which functionality i want to expand:
A user can login to this App via Facebook and also other users are logged on their own Mobilephone. Both can see the location of the other.
So basically an location aware meet people APP :-)
How can I do this? Backend with PHP and mysql database?
Are there already existing solutions I can use?
Tutorials available describing this?!
the infrastructure you need is achievable in many many programming languages and many types of databases.
In the end what you need is a server running that can store the location data sent from the users. Ideally i would tell you to use webservices in order to achieve this.
Next, you will need to implement a location service app that works on the user smartphone and uses the web services to send information and get information to and from the server.
Programming languagens you can achieve this are so many. For example, in the back end you can use a mysql database with a tomcat server. if u need a front-end for the server you can use java server pages, php, whatever u feel more confortable with.
for the mobile phone there are hybrid application for different OSs. for android specifically you will use java. if u want to save some info in the phones you can use a SQLite database. this is important if you want to send data only when internet connections are available.
Those are the kind of things you have to deal with. Hope i helped you.
Good luck.
I am in the preliminary stages of designing a smartphone app (will be available on iOS, Android, Windows Phone). I am just learning all of this. I am trying to find the right database for my needs.
This database will eventually have high-traffic, has to be able to integrate into an app, and maybe even use a website later on. The app will send and receive data from the database. Any advice on this would be greatly appreciated.
I know SQLite works well in apps, but can it support high-traffic apps that have users uploading a lot of data at the same time? To recap, it must be: accessible from an app, support high-traffic, send and receive data.
I would reccommend MySQL, which I see you have tagged in your question already. I'm using MySQL for a Survey applcation and I havent had any problems with it. I get information from the Server via php.
Basic outline of what my app does:
iPhone App connects to the url for the php script, inputting correct arguments --> php script contacts the database --> php returns values --> iphone app stores the variables for use in obj-c
You can store sqlite database right in your application, but I never needed to do so. Hope this helps.
I have an idea for a website that will require the use of a database to keep track of user accounts, and other things the user does on the website. I have experience with developing websites with MySQL database. I was hoping to also create an application for the website on Android and iOS. I have some experience with Android development, and I am still learning quite a lot. However, I have not done anything with databases in mobile devices.
What would be the best way to create a mobile applications and a website that the user could use to access their accounts. Would it be best to have a mobile database on the handset and sync it with the database on the server, or would it be best to have the application query the database on the server directly?
Thanks,
Michael
The best way I suggest is to use APIs.
You can create APIs to access the database through your mobile application.
You website will also be using the same database, and your mobile application will be calling the APIs to get data from the database.
May be this can help you to get started: http://www.javacodegeeks.com/2010/10/android-full-app-part-2-using-http-api.html
I think, Use web-service to communicate with web database. It is easy to use because you are using this database for both android and ios.
Thanks.