03 November 2009

Setting proxy for Android by GUI (official way)

UPDATE: [2010-05-21] It works with Froyo (Android 2.2)

If you read my earlier post, maybe you already known the way to set proxy for Android (1.6 and earlier versions).

But, that is "un-official way", you need to modify something (the settings.db file) in core system of Android, and you must "restart" emulator to make it available.

Now, I found a new way, such a very simple way (I don't know why I haven't found it before). You can use GUI of Android to set proxy, and it works immediately.

(Note: this guide line for all versions before 2.0 only. It NOT works with Eclair, and I don't know the reason >"<. [---Update: It works with Froyo---] ) 1. Firstly, go to Settings menu, then select Wireless controls



2. In the Wireless controls menu, select Mobile networks,



3. Then, select Access Point Names


4. Press Menu hard key, then select New APN


5. Fill information of your proxy, ex:


Name: YourProxyName
APN: internet
Proxy: your.proxy.server.com
Port: 8080

(You can use your own proxy host and port for Proxy and Port fields)

6. Press Menu hard key, then select Save.


7. You will be returned to Mobile network settings menu, you need to select Access Point Names again and select your new APN to activate it.


8. Press Home hard key to return Home screen. Go to Browser application.
Now, you can use your own proxy for Android browser.



Have fun! ^^

31 comments:

신재영(Jaeyoung Shin) said...

If you know solution about setting in 2.0, please let me know.

Anonymous said...

I wish not agree on it. I regard as warm-hearted post. Specially the designation attracted me to review the unscathed story.

Anonymous said...

Nice post and this post helped me alot in my college assignement. Say thank you you seeking your information.

Anonymous said...

Opulently I acquiesce in but I think the post should have more info then it has.

Anonymous said...

It helped me to configure. But, unable to find flash for Android-1.6 :(

Manuel said...

This solution doesn't work with my HTC Tattoo (using Android 1.6), under my university proxy :/ I hope Google provides a solution soon, the lack of proxy configuration option is unacceptable!

Duykham said...

@Jaeyoung Shin: sorry, currently I can not be success with 2.0. I'll try more :)

@Manuel: I just tested it on emulators. Maybe, this configuration does not affect to WiFi connection on real device.
> the lack of proxy configuration option is unacceptable!
--> I think so :)

@others: thanks :)

Avinash Meetoo said...

Hi,

Thanks for your post. I've tried it with Froyo on a N1 and it does not seem to work.

I created a new APN and set the name, the APN (internet), proxy and port. Browsing gives me an error message: "Cannot connect etc."

Any idea?

Jade said...

I hope that this may work again on 2.2 Froyo when it comes out in June (if it comes out in June)

Duykham said...

@Avinash Meetoo: sorry for made confusing, this post for Emulator only :(. It does not work on real device. I faced the same problem on N1, too.

@Jade: I'm afraid that in Froyo, we still have not proxy setting for Wifi connection. So sad :(

Mahama said...
This comment has been removed by the author.
Mahama said...

After i thought this would be a rubbish solution again, i gave it a try (i think i tried it some time before)

and this time it really worked! No joke!

N1 with 2.2 works with it. Can't belive it... now i can surf without this opera thingy in the university and have flash and stuff... too bad the market and everything else is not working.

It even works with other browsers like skyfire!

Again:

I CAN CONFIRM THAT THIS DOES WORK ON N1!

Edit: Posted 27. July 2010

kunal said...

I have N1 with froyo FRF91 and I tried this and It is not working for me.

Can somebody else confirm it ?

Von Goethe said...

It worked with my Motorola Cliq/Dext (Brazil) using the standart 1.5 Android with Motoblur.

It didn't work at my friend's Droid/Milestone with 2.1 Android and at my other friend using a Motorola Cliq XT/Quench also using the standart 1.5 Android with Motoblur.

Jonnathan said...

I tried with my SE Xperia X10i (Android 1.6) and it doesn't seem to work. Any idea why?

kevin jhonson said...

Here is the step by step guide for setting up proxy in android phones...It works on Froyo...

http://android-proxy.blogspot.com/

Devils Throat said...

Dude we need proxy to connect to Wifi..not to the mobile internet, that works fine.....guys please dont get misleaded...this doesnt help to browse through wifi....

Sajeev said...

this does not connect through wifi but through 3G..

[slawko] said...

Come one... This is not for wifi... We don't need to set the proxy for 3G, which is working fine. We need proxy for wifi :)

fox said...

Thank you for the excellent blog and for helping me to access Australian proxy at my workplace. I am really happy.

sushant said...

Hi I used the trick u told.. However i am seeing a strange problem..On my LG Optimus one My coporate email takes the new settings but rest of the applications dont work.. Any idea why this should be happening..

Hem said...

online-proxy.org is a free web based anonymous proxy servers and sites and offer complete proxy server list with Online proxy features.

Online proxy

Hem said...

unblocked proxy
proxy for facebook
Bypass Proxy
new unblocked proxy
USA Proxy
Proxy Sites For Facebook - Proxy For Facebook

indrasenareddy said...

coverage.ec is not generating. I am trying my application in tomcat.

I have done the following steps:
1. I have deployed my application in tomcat
2.i have copied emma.jar to C:\Program Files\Java\jre1.5.0_21\bin\lib\ext

3. My tomcat5w.exe, contain the following info:
JVM as: C:\Program Files\Java\jre1.5.0_21\bin\client\jvm.dll
Java Options:
-Demma.coverage.out.file=D:\Tomcat 5.5\emma\coverage.ec
-Demma.coverage.out.merge=true

4. Now i have instrumented the deployed application as below.
java -cp emmar.jar emmae instr -m overwrite -cp "D:\Tomcat 5.5\webapps\ROOT\WEB-INF\classes\com"
and coverage.em has generated in C:\Program Files\Java\jre1.5.0_21

5.Now i have started my tomcat and did some transaction.
when i see in stdout.logs ,i am getting
EMMA: collecting runtime coverage data ...

EMMA: runtime controller started on port [47653]

6.Stopped the tomcat
7.i tried to find coverage.ec in D:\Tomcat 5.5\bin
and also in C:\Program Files\Java\jre1.5.0_21\

but i could not found this file.

8.And also tried the application to run from command line prompt,there also i couldnot found the file.

9.i also set my jre path java_home in environment variables

indrasenareddy said...

coverage.ec is not generating. I am trying my application in tomcat.

I have done the following steps:
1. I have deployed my application in tomcat
2.i have copied emma.jar to C:\Program Files\Java\jre1.5.0_21\bin\lib\ext

3. My tomcat5w.exe, contain the following info:
JVM as: C:\Program Files\Java\jre1.5.0_21\bin\client\jvm.dll
Java Options:
-Demma.coverage.out.file=D:\Tomcat 5.5\emma\coverage.ec
-Demma.coverage.out.merge=true

4. Now i have instrumented the deployed application as below.
java -cp emmar.jar emmae instr -m overwrite -cp "D:\Tomcat 5.5\webapps\ROOT\WEB-INF\classes\com"
and coverage.em has generated in C:\Program Files\Java\jre1.5.0_21

5.Now i have started my tomcat and did some transaction.
when i see in stdout.logs ,i am getting
EMMA: collecting runtime coverage data ...

EMMA: runtime controller started on port [47653]

6.Stopped the tomcat
7.i tried to find coverage.ec in D:\Tomcat 5.5\bin
and also in C:\Program Files\Java\jre1.5.0_21\

but i could not found this file.

8.And also tried the application to run from command line prompt,there also i couldnot found the file.

9.i also set my jre path java_home in environment variables

Ecommerce Web Developers said...

I am glad to apprehend the accomplished agreeable of this blog and am actual aflame and blessed to say that the we bmaster has done a actual acceptable job actuality to put all the advice agreeable and advice at one place.

Android app developer

Interesting facts said...

Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write ups thanks once again.
Video squeeze page

sinista said...

Great site, thanks for sharing. Here's another site that has some great lists for proxies as well. http://www.daily-proxy.blogspot.com

Doe Lisa said...

Thanks for give me some information about this Proxy. Your list proxy very fresh. It working. Your blog very good. My blog Keppel Tie

mahasiswa teladan said...

Thanks for review, it was excellent and very informative.
thank you :)

Julia David said...

Whenever I need some problem relating this issue I come to your site and get very informative stuff thanks a lot for your article . Keep it up.
eMp3World UK proxy

Shellcode that bring back tty input

There are cases that you think you have been able to exploit the bug (e.g. buffer-overflow) but the program is terminated right awa...