On Tue, Oct 4, 2011 at 1:54 PM, Vikas Mahajan <vikas.mahaja...@gmail.com> wrote:
> I want to make an app that would set the global proxy settings or
> proxy settings per access point (Wifi or APN) without rooting the
> android device. I found one way of doing this by sending intent to
> start com.android.settings.ProxySelector activity, but I want to hard
> code the proxy settings programatically (I don't want user to enter
> proxy settings in UI, it should be done automatically via app). So,
> according to me for that I have to write in Settings.Secure database
> (by user app). So, is there any api available for doing this?

You cannot do this, except via an app that's part of the firmware, or
perhaps on a rooted device.

> and if
> not can I set the values of UI elements of ProxySelector activity
> without showing that activity to user (like in background) to set
> proxy using same activity but without entering any data by user?

No.

> Also, please tell if there is some another way of doing proxy settings
> in unrooted android devices?

I hope not, because that would be a serious security hole.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to