【问题标题】:sencha touch > phonegap > android 3.1 Acer A500 web page contains errorsencha touch > phonegap > android 3.1 Acer A500 网页包含错误
【发布时间】:2011-06-03 10:52:13
【问题描述】:

我已经部署了使用 sencha touch 和 phonegap 制作的 android 应用程序, 而且我对经典智能手机没有任何问题。

但是使用 Android 3.1 上的 ACER A500,用户会遇到问题:

"Application Error
 The Web page contains an error. (file:///android_asset/www/index.html#false&en)"

false&en 是我将 android 变量首选项传递给 js 的方法。

在我拆分后。

问题是当我使用模拟器(android 3.1)时我没有任何错误。

你有什么想法吗?

【问题讨论】:

    标签: android cordova sencha-touch android-3.0-honeycomb


    【解决方案1】:

    this Android issue ticket。似乎带有文件协议和参数的 URL 会导致 Android 版本 > 3.0 出现问题。

    比如file://android_asset/index.html可以加载OK,但是

    file://android_asset/index.html?dddd

    file://android_asset/index.html#dddd

    无论通知字符 ?、# 或其他什么,都会给出错误。

    有趣的是,模拟器不会吐出错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-05-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多