why is this happening, How do I correct this "mistake"? : <p><a href="https://i.stack.imgur.com/DksIU.png" rel="nofollow noreferrer">enter image description here</a></p>

<p>And also when I try to start in the same code the application on the phone stops responding I think the error would be in some code of the connection but I'm not sure because I'm very noob in this question</p>

<p>And another question, is my connection correct?</p>

<pre><code>public class ConexaoClass {

String classs = "com.mysql.jdbc.Driver";
String url = "jdbc:mysql://localhost:3306/bd_tela";
String un = "admin";
String pass = "96960409w";


@SuppressLint("NewApi")
public Connection CONN(){
    StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
    StrictMode.setThreadPolicy(policy);

    Connection conn = null;
    String connURL = null;
    try{
        Class.forName(classs);

        conn = DriverManager.getConnection(url, un, pass);

        conn = DriverManager.getConnection(connURL);

    } catch (ClassNotFoundException e) {
        e.printStackTrace();
    } catch (SQLException e) {
        e.printStackTrace();
    }

    return conn;
}
</code></pre>
