John Wargo

Home Mobile Development Android Emulator Access to LocalHost
Android Emulator Access to LocalHost PDF Print E-mail
User Rating: / 2
PoorBest 
Tuesday, 19 January 2010 13:25
AddThis Social Bookmark Button

In preparation for my presentation at Lotusphere tomorrow, I've been beating my head against a problem and finally found a very simple solution. I thought I'd share. I'm trying to add an Android example to my rich client session and because I've been sick, I didn't get to work on this until this week. Nothing like last minute coding, eh?

Anyway, I have the Domino server running on my laptop and I've been trying to connect to it from the Android Emulator for about a day now. You can't use localhost, because localhost on a mobile device (whether it be an actual device or an emulator) points to the local device. The emulator therefore doesn't know about the local laptop through that reference (which is what you'd do to do any local testing laptop app to laptop app).

Here's a link to the article I found - have to give credit where it's due: Ever tried ‘localhost’ with the android emulator?

 

My Book

InformIT (Pearson Education)