Android - Access to Mysql Database -communicationsexception

view full story

http://stackoverflow.com – I have a problem with the application I'm developing. I am trying to connect to a database in Mysql that is in local in a WIFI network with my application on android. I use for this, a direct method, with mysql-connector-java 5.1.23. The application works fine on my nexus one (Android 2.3). But not on my nexus 7 (Android 4.2). I've got the error : "com.mysql.jdbc.exceptions.jdbc4.communicationsexception communications link failure" However, using an application of the market (connect2sql) on my nexus 7, I can easily access the database. I guess (but I don't understand) that the error is relat (HowTos)