如何使用Android代理库 [英] How To Use Android Proxy Library

查看:129
本文介绍了如何使用Android代理库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Android的新的和我想使​​用机器人代理库以获取有关代理详细信息,并更改代理服务器设置。我试图让目前的代理配置,并期待这里。有一种被称为ProxyConfiguration,而是APL.getCurrentProxyConfiguration(URI)收益代理服务器实例类。并没有一个名为ProxyConfiguration,在APL类。

I'm new in android and I want to use android proxy library to get information about proxy details, and change proxy settings. I tried to get current proxy configuration and look here. There is a class which is called "ProxyConfiguration" but "APL.getCurrentProxyConfiguration(uri)" returns "Proxy" instance. And there is no class named "ProxyConfiguration" in APL.

在哪里我错了?任何人都可以在这里放一个样本code使用APL?

Where I'm wrong? Can anyone put here a sample code to using APL?

推荐答案

该APL.getCurrentProxyConfiguration方法返回一个代理实例,它是标准的Andr​​oid类存储代理信息。

The APL.getCurrentProxyConfiguration method returns a Proxy instance which is the standard android class to store the proxy information.

http://developer.android.com/reference/java/net/ Proxy.html

如果你想上的Wi-Fi无线AP,并且可以调用它返回一个WiFiApConfig实例(定义成APL源$ C ​​$ c)该getWiFiAPConfiguration方法代理。一些更多的信息

If you want some more information on the Wi-Fi AP and the proxy you can call the getWiFiAPConfiguration method which returns a WiFiApConfig instance (defined into the APL source code).

这篇关于如何使用Android代理库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆