How to connect jdbc with mysql on Android

0 votes
283 views
asked Mar 20, 2015 in Android by anonymous
Hello,
I am developing an application in android, and I have a problem, I am trying to connect via JDBC my application to mySQL, after developed, without any compilation error, but when trying to run offers consultation, gives me erroes, and execution stops program. In data compilation aparcecen like this message.
java.net.SocketException message java.net.ConnectException: socket failed: EACCES ? Can anyone help me And if not, can someone help me make the connection to MYSQL By JDBC?

1 Answer

0 votes
answered Mar 20, 2015 by administrator (9,170 points)

 is the manifest permission to internet exists? 

<uses-permission android: name = "android.permission.INTERNET" /> 
if so has the correct syntax? deve be within the tag 
<uses-sdk 

I did not understand why using jdbc, it is more efficient to use web services 
I hope you serve ...

...