-3

I try to make an app, but when I try to connect my app with me online mysql, doesn't work in my s2 and me s3, but in me s1 works fine...

I write this code

 Class.forName("com.mysql.jdbc.Driver").newInstance();
        (Connection)DriverManager.getConnection(ipServidorMySQL,    usuarioMySQL, contrasenaMySQL); 
        return true;

Any one can help me?? Ty and sorry for me english

sdelcueto
  • 37
  • 7
  • Why not to directly connect to mysql from Android: http://stackoverflow.com/questions/15853367/jdbc-vs-web-service-for-android – Morrison Chang Jan 30 '15 at 18:45

1 Answers1

0

Any exception thrown ? Could you surround your code with a try/catch then analyze the exception ?

LeGeekDOzoZoo
  • 402
  • 3
  • 7