I’m writing an Android app to track Crossfit WODs.
One of the things I want the app to do is parse an RSS feed. That means I need my emulator to be able to access the RSS feed from my app so I can test it. I’ve gotten my app to the point where I can start working on this feature.
When I execute the browser app on the emulator, it wasn’t getting a connection. After searching around a bit on stackoverflow.com, I found that I needed to set a set an extra option when I executed the emulator from within Eclipse.
In Eclipse, click the “Run” menu item. Select “Run Configurations…” and a window will open up. On the right side of that window are 3 tabs. Select the “Target” tab in the middle.
Scroll down to the bottom of that window and you will see the text “Additional Emulator Command Line Options” and an input box at the bottom. Add the text
-dns-server X.X.X.X
to the input box, where “X.X.X.X” is the IP address of your default gateway. You can find that IP address by typing “ipconfig /all” on a command line.
My default gateway address is “10.0.0.1”.
Click the “apply” button and then Run and you should be all set.
