Smitha
Smitha

Reputation: 6134

Accessing Internet from Emulator in Android

enter image description hereI am trying to access internet (http://www.google.co.in/) through my project say "WebViewDemo".
It works fine in device but not in emulator. I am able to access internet (http://www.google.co.in/) through the browser of the emulator. But my project displays "Web Page is not available".

I am behind a proxy. I have added INTERNET permission in the AndroidManifest.xml file

Upvotes: 0

Views: 230

Answers (3)

Shubhayu
Shubhayu

Reputation: 13552

Try this

In Eclipse:

Window>Preferences>Android>Launch

In the Default emulator options, put the value -dns-server 8.8.8.8,8.8.4.4

If this does not work, check this post How to set Internet options for Android emulator?

Upvotes: 0

Mitul Nakum
Mitul Nakum

Reputation: 5564

you can toggle internet by pressing F8 button. Try to tern it on... you will able to see 3G symbole in status bar.

Upvotes: 0

RajaReddy PolamReddy
RajaReddy PolamReddy

Reputation: 22493

No need to add any thing for getting internet on emulator , if you have internet for your PC, you can get internet on emulator.

Upvotes: 1

Related Questions