user8144524
user8144524

Reputation:

what should be the address when running the appengine on localhost using android device and "Not Emulator"

MyApi.Builder builder = new MyApi.Builder(AndroidHttp.newCompatibleTransport(), new AndroidJsonFactory(), null)

.setRootUrl("http://10.0.2.2:8080/_ah/api/")

Upvotes: 0

Views: 42

Answers (1)

Michael Meyer
Michael Meyer

Reputation: 2184

You need to use the internal ip address of the machine which is running the appengine server and you have to put the following line to your gradle build file of your appengine project

appengine {
 .....
 httpAddress = '0.0.0.0'
 ......
}

Upvotes: 1

Related Questions