Problem in enabling internet in android Emulator

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Problem in enabling internet in android Emulator

Postby prasb » Thu Feb 19, 2009 7:29 am

i try to enable internet in android emulator(working behind proxy) using the following command:

adb shell sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db ""INSERT INTO system VALUES(99,'http_proxy','10.201.51.54:8080');""


but still i am not getting the internet access in emulator, any one plz tell me any other ways to enable internet in android emulator.. i tried the above command several times,but no use plz give some other answers

Thanks...
Prasanna
prasb
Freshman
Freshman
 
Posts: 2
Joined: Wed Feb 18, 2009 5:21 am
Location: India

Top

Postby MrSnowflake » Thu Feb 19, 2009 8:54 am

You probably should use the command-line option of the emulator to set the http proxy, instead of adjusting the android poxy. I'm not sure though.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Internet enable

Postby prasb » Mon Feb 23, 2009 7:18 am

thanks for ur reply..

i tried it on the command line option only, i never touched the andrpoid proxy..
Prasanna
prasb
Freshman
Freshman
 
Posts: 2
Joined: Wed Feb 18, 2009 5:21 am
Location: India

Re: Internet enable

Postby sushil kathade » Fri Mar 13, 2009 10:35 am

hi
same problem with me

when I typed
adb shell sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db ""INSERT INTO system VALUES(99,'http_proxy','172.29.2.140:8080');""


I am getting error as permission denied


please provide me solution

is there is another way to connect with internet through emulator?
sushil kathade
Junior Developer
Junior Developer
 
Posts: 12
Joined: Thu Feb 19, 2009 1:01 pm

Postby MrSnowflake » Fri Mar 13, 2009 10:40 am

It gives you the exceptino Permission denied and probably also the permission which you should define in the manifest...
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby sushil kathade » Fri Mar 13, 2009 11:46 am

thanks for reply


I want to enable internet for browsing and for a map application in android emulator.

I tried above command through cmd line but not successful.....


is there any other way to enable it?


and can you specify which manifest you are talking about? is it application's manifest or emulator's?
sushil kathade
Junior Developer
Junior Developer
 
Posts: 12
Joined: Thu Feb 19, 2009 1:01 pm

Top

Connecting android emulator to internet

Postby chetandl » Tue Mar 24, 2009 6:30 am

Hi ,

Is there any complete tutorial to connect android emulator to internet using proxy settings.
I want this from many days. :roll:
I can't find it anywhere ? :cry:

Thanks
chetandl
Junior Developer
Junior Developer
 
Posts: 23
Joined: Tue Mar 17, 2009 9:17 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 8 guests