【问题标题】:WebView Proxy Problem - "Web page not available"WebView 代理问题 - “网页不可用”
【发布时间】:2011-02-28 07:56:45
【问题描述】:

我在代理后面并尝试加载网页 (http://www.google.com) 在 webview 中(我使用的是 sdk 1.5)。我已经为模拟器设置了代理(通过 进入设置->无线控制->移动网络->接入点 名称-> T-Mobile)。我可以通过浏览器应用程序来浏览网站。但 当我从 Web 视图加载页面时,我收到“WebPage not available error”。

【问题讨论】:

标签: android android-emulator android-webview


【解决方案1】:

添加 mWebView.enablePlatformNotifications(); to enable proxy in web view 在你的活动中和

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

在清单文件中

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-08
    • 2019-08-14
    • 1970-01-01
    相关资源
    最近更新 更多