Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have been trying to run internet on the android emulator but with no success yet. I have tried most of the things i.e. trying to run with dns-server option argument, adding proxy configuration details in APN settings. It does make internet work on android emulator but only the browser is able to use it and not the applications. So have got the proxy removed but still am not able to use internet. In fact, after removing proxy even the browser is not able to connect to the internet.

Is having static IP associated with the system a necessity ? As, the system which I am using doesn't have a static IP?

Can anyone suggest what can be the issue?

share|improve this question
    
if you have localhost in system Try typing 10.0.2.2 in emulator browser! –  TCA May 30 '13 at 12:24
    
In my experience if the android browser is able to connect to the internet but your application is not then there is something wrong in your application, not with the emulator. –  Rarw May 30 '13 at 12:43
    
The browser only working with a proxy setting seems to suggest that your Internet service connection blocks direct connections and requires everyone to go through a proxy. This may be supportable, but it will be rather painful to configure. –  Chris Stratton May 30 '13 at 15:17
    
@Rarw - There is an issue with Android since long time that it doesn't provide support for Proxy globally. The browser is able to use the internet only when I configure Proxy settings in it otherwise not. –  mobiledev May 31 '13 at 11:37
    
@ArunCThomas - Trying typing 10.0.2.2 in emulator browser gives Connection to the server timed out error dialog. –  mobiledev May 31 '13 at 11:52
add comment

3 Answers

Forgive me if this is obvious but do you have the right permission set in your app?

<uses-permission android:name="android.permission.INTERNET" /> 

In your manifest.xml?

Static IPs shouldn't be a requirement at all.

share|improve this answer
add comment
up vote 0 down vote accepted

The issue has been resolved. There were some issues with IT policy on the system which was blocking android emulator from using the internet. Now, this has been resolved.

share|improve this answer
    
I think I have the same problem. Could you please explain what you did? –  wordpressm Jan 24 at 9:54
add comment

I solved this by creating new APN in the emulator.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.