次のコードを使用して、Eclipse エミュレーター Android から SQL サーバーに接続しようとしています。
String driver = "net.sourceforge.jtds.jdbc.Driver";
Class.forName(driver).newInstance();
String connString = "jdbc:jtds:sqlserver://83.212.240.15:1521/hua;encrypt=fasle;user=xxxxxx;password=xxx;instance=SQLEXPRESS;";
String username = "xxxxx";
String password = "xxxxx";
conn = DriverManager.getConnection(connString,username,password);
Statement stmt = conn.createStatement();
ResultSet reset = stmt.executeQuery("insert into picture values('hi');");
conn.close();
しかし、私は次のエラーがあります
サービス com.android.exchange.ExchangeService が ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40cebcd0 を漏えいしました。これは元々
android.app.ServiceConnectionLeaked にバインドされていました: サービス com.android.exchange.ExchangeService は ServiceConnection com.android を漏らしました。 emailcommon.service.ServiceProxy$ProxyConnection@40d64ec0 は、もともとここ
android.app.LoadedApk$ServiceDispatcher.(LoadedApk.java:969) でバインドされていました
私はインターネットの許可を入れました。また、jtds-1.3.0.jarをlibフォルダーに入れました。何かアイデアはありますか?
よろしくお願いします