Proper way to use database on Xamarin - android

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

Related

Allow access to a website through my android app

So I just did a bit digging and found out that storing any type of passwords in any java application (in my case, android application) is not safe as the password can be retrieved by anyone by decompiling the java code. Now, on net, I, somewhere, also learned that a better way to interact with any database (my case), such as mysql, would be to create a web interface which by some way can differentiate between anyone else interacting without my app and someone interacting with web interface through my app. So, can someone tell me how to do so or if there is any better way to accomplish what I want to?
for this you can check out firebase to interact with database and create your web application and mobile application based on that data . And there you can differentiate in them.
One way which you already know is to create a web service layer which accesses your database.
Another way would be to use a BaaS to have a direct web layer access to a backend. There are many available BaaS solutions which would help you with this.
Third and best way in my opinion for new coders would be to use an existing auth service like Firebase Auth. This will pretty much give you all the features out of the box eg... signup emails,password resets, multiple login methods and their Firebase Auth UI will give you login screens without almost any code. Check it out, it actually is pretty good if it suits your needs
Maybe chrome custom tabs are what you're looking for? They let you open an instance of chrome from within the app https://developer.chrome.com/multidevice/android/customtabs

How to create users in/for apps

I have a question that probably has a straight forward answer, but I am asking here to make sure.
If I want to develop an app with users (e.g. Snapchat, Wordfeud etc.), how do I do it? Do I have to use a database of some kind? The users will not have much information stored to them, say nothing more than a username and a score collection.
Can I do this without using databases?
And how do I even set up an app for having users?
You need a database.
For the simplest, you can set up a MySQL database on any server, and make queries to it.
You can follow this tutorial: http://codewithchris.com/iphone-app-connect-to-mysql-database/
You will need a database if you want to implement some functionalities like friendlist and sending messages.
To handle the authentication, Google has built in tools to help you :
https://developers.google.com/identity/sign-in/android/sign-in

Android - Sending and receiving location updates of other users

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.

Website and Mobile Application Database Linking

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.

android application with database in the cloud(internet)

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.

Categories

Resources