English 中文(简体)
1. 广泛替代环境
原标题:Set android system wide proxy settings
  • 时间:2012-04-25 08:29:28
  •  标签:
  • android

我正在研究一份安乐文片,作为广泛的父母控制解决办法的一部分。

该台台应安装桌旁,与一个使用系统广域的代理服务器合作(所有关于该装置的仪器将被迫考虑代用服务器)。

代理服务器的工作是过滤和监测表上的所有离去连接。 作为这项工作的一部分,只有特定地点才能提供,而大部分仪器将被阻断(包括谷歌游戏仓库或安装在该装置上的任何其他通信设备)。

作为额外的,如果用户通过监测和改变环境,或用密码阻挡用户,那么我就希望用户无法改变或消除代用环境。

The actual proxy server is already running and functional. It is important the app will not require a custom ROM and/or root access

是否能够做到这一点?

最佳回答

否则,控制台在无法进入所有系统的情况下赢得了工作——意味着根本的准入。 你可以尝试理解安妮·维耶斯软件使用的原则,这将有助于更多。

缺席,因为现在不可能为申请设定Proxy。

问题回答

我有同样的问题。 我使用的图书馆确实是http://www.un.org。 因此,我开始挖掘,我需要做两件事。 在我自己的网站要求之前添加这一法典:

HttpClient httpClient = new DefaultHttpClient();
if (useProxy) {
  HttpHost proxy = new HttpHost("192.168.1.10", 8080, "http");
  httpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);
}
//use httpClient for a request here

但是,这并不能完全解决我的问题。 我无法从自己要求访问的图书馆来源。 我寻求更多的解决办法,我发现,你可以使用以下守则,为你提出的所有要求设定一个默认代理。

System.setProperty("http.proxyHost", "192.168.1.10");
System.setProperty("http.proxyPort", "8080");

在添加该守则之后,图书馆的要求也通过代理人提出。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签