Access External Database on Android App (Andriod App)

Taseen Amin · 142K views · 2012 · 10:37

Open on YouTube

Software (other)Databases & storageWeb developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as the tutorial they followed when connecting an Android app to MySQL through PHP, usually when their copy of the code breaks or confuses them.

Recommended by 1 people across 1 different months, 2013 to 2016.

What it is

A 2012 screencast by Taseen Amin showing how an Android app can read data from an external MySQL database by calling PHP scripts on a web server. It walks through the PHP side and the Android client code, and the presenter admits to being nervous while recording.

What people said

Recommends Vishruth K · 2016-02 · Stack Overflow · on “Access table from MySQL into android”

Guys i want to recieve values from MySQL into my app without using buttons. I have used wampserver for the connection. I then followed this tutorial for both, create the php file and to code in android studio: [this video] but, the following code has deprecated parts: HttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(" [LINK] "); HttpResponse httpResponse = httpClient.execute(httpPost); HttpEntity httpEntity = httpResponse.getEntity(); inputStream = httpEntity.getContent(); So, i refered this link: HttpEntity is deprecated on Android now, what's the alternative? [LINK] and with it i coded this: public class LoginActivity extends Activity { TextView textElement; @Ov

Cites YDU · 2013-10 · Stack Overflow · on “Access local MySQL database from Eclipse Android-Emulator”

Hello folks of stackoverflow! I have a problem that I've been trying to fix for days now, but nobody in our group can fix it. Here's the issue: The task is "simple": Set up a connection between an Android device (run as an emulator in Eclipse) and a locally set-up MySQL Database. The goal was to be able to run queries (saved in PHP-scripts which are stored on a local webserver (using XAMPP)), so that the Android device was able to withdraw content of said database and display it in a TextView. To do this, the following tutorial was used as help: [this video] Unfortunately, my setup didn't work properly. Before I continue describing my issue, here's my code (don't worry if my explanation doesn't m

Cites Jona · 2014-06 · Stack Overflow · on “How to connect Android app to mySQL *SPECIFICALLY*”

After at least 10 hours of pouring over online resources, videos, and tutorials, I have two questions about connecting my android app with my mySQL database. Saving files 1) All the tutorials save the php files in C/WAMP/www/hello_php - for example, and so when you go to localhost/hello_php everything works. --Where do I store my php files if I don't want to use localhost? i.e I want to use my mySQL's IP address. --For example, the guy from this video [this video] uses this: HttpPost httppost = new HttpPost(" [LINK] "); --I presume the 192.168... is the IP of his server. Where did he save the "getAllCustomers.php" file? --Note, I am using phpMyAdmin to handle the database. Existing JDBC code 2) I