Database connectivity without php in android?

+1 pratt 15 · March 2, 2015
Can i connect my android login form direct with the database hosted at any server . Why i need php for it? Please explain me in detail.:angel:

Post a Reply

Replies

Oldest  Newest  Rating
+1 Saifur Rahman Mohsin · March 3, 2015
You don't need PHP. You basically need any server side language and a REST API to communicate with it. PHP happens to be a popular choice (but I prefer Node.JS). The problem with directly connecting an Android device to a server is that you'll have to hardcode the database credentials into the app, and doing that is bad because even an amateur reverse engineer can easy extract the DB credentials and hack your database.

So the right way to do it is build a REST API or a website and make calls to that website/API using GET/POST requests
  • 1

Java / Android Development

107,158 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator