This question already has an answer here:
I am new at android. I am devloping an app that uses MySQL. The application runs well in the emulator. But now I need to run the app in a android device. What can I do.
This question already has an answer here:
I am new at android. I am devloping an app that uses MySQL. The application runs well in the emulator. But now I need to run the app in a android device. What can I do.
As stated in the first comment, you should check your file AndroidManifest.xml.
In order to access the network, it should contain the following instructions :
You may also add the following, which enable your application to know the actual state of the network connection.