[mono-android] How to get proxy settings
Builder
peter.gejgus at gmail.com
Mon Feb 6 14:14:26 UTC 2012
Hello,
I tried to run this code (on Samsung galaxy s2) according to your hint:
string proxy;
int port = -1;
string user, password;
Android.Net.Uri uri =
Android.Net.Uri.Parse("content://telephony/carriers/current");
var cursor = this.ManagedQuery(uri, new string[] { "proxy", "port", "user",
"password" }, null, null, null);
if (cursor.MoveToNext())
{
proxy = cursor.GetString(0);
port = cursor.GetInt(1);
user = cursor.GetString(2);
password = cursor.GetString(3);
}
No success. Any other ideas?
Peter
--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/How-to-get-proxy-settings-tp5165927p5460158.html
Sent from the Mono for Android mailing list archive at Nabble.com.
More information about the Monodroid
mailing list