Skip to content Skip to sidebar Skip to footer

Connecting Remote Mysql Database Using Ip Address Of The Remote System In Android Emulator

This is the following code: `package com.tom.jam; //import java.sql.Connection; //import java.sql.DriverManager; import java.sql.*; import android.app.Activity; //import android

Solution 1:

java.net.SocketTimeoutException:Connection timed out, exception occurs when destination system is not reachable. It may be due to proxy not set on your emulator, to set proxy on emulator you can start emulator by command in command prompt:

emulator -avd avdname -http-proxy http://192.168.1.1:8080

Here replace avdname to name of avd you want to run your program, and http:192.168.1.1 to your proxy server.

Post a Comment for "Connecting Remote Mysql Database Using Ip Address Of The Remote System In Android Emulator"