【问题标题】:running sencha + phonegap + blackberry运行煎茶 + phonegap + 黑莓
【发布时间】:2012-07-23 02:37:40
【问题描述】:

我使用黑莓 phonegap 运行 sencha 应用程序。我遵循此步骤; 1.使用命令构建sencha应用程序(sencha app build package) 2.created blackberry phonegap 项目并在这个创建的 www 文件夹下 3. 从 sench build 中复制所有文件并粘贴到 www 文件夹中 4.运行黑莓phonegap项目 运行项目后,我得到白屏。谁能告诉我我做错了什么。

我的 index.html 代码是:

 <!DOCTYPE HTML><html manifest="" lang="en-US">
  <head>
  <meta charset="UTF-8">
  <meta name="format-detection" content="telephone=no">
  <title>RetailBanking</title>
   <script type="text/javascript">
   (function(h){
       function f(c, d){

          document.write('<meta name="' + c + '" content="' + d + '">')
           }
          if ("undefined" === typeof g) 
         var g = h.Ext = {};
           g.blink = function(c){
                 var d = c.js || [], c = c.css || [], b, e, a;
                  f("viewport", "width=device-width, initial-scale=1.0, maximum-              
                 scale=1.0, minimum-scale=1.0, user-scalable=no");
              f("apple-mobile-web-app-capable", "yes");
              f("apple-touch-fullscreen", "yes");
            for (b = 0, e = c.length; b < e; b++) {

      a = c[b], "string" != typeof a && (a = a.path), document.write('<link             
         rel="stylesheet" href="' + a + '">');
         }
           for (b = 0, e = d.length; b <e; b++) {

             a = d[b], "string" != typeof a && (a = a.path), document.write('<script 
            src="' + a + '"><\/script>')
         }
       }
            })(this);
          ;
      Ext.blink({
         "id": "0e9adf70-bf82-11e1-97b4-2d0be393dffb",
        "js": [{
         "path": "cordova-1.9.0.js",
          "type": "js"
           }, {
          "path": "sdk/sencha-touch.js",
          "type": "js"
                }, {
          "path": "sdk/sencha-touch-all.js",
             "type": "js"
                   }, {
                "path": "Messages.js",
                  "type": "js"
                             }, {
                         "path": "constants.js",
                                "type": "js"
                            }, {
                            "path": "math-uuid.js",
                               "type": "js"
                              }, {
                              "path": "app.js",
                             "update": "delta",
                                 "type": "js"
                                       }],
                                   "css": [{
                            "path": "resources/css/app.css",
                                 "update": "delta",
                                   "type": "css"
                              }]
                              })
                </script>
  <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true">
           </script>
          </head>
          <body>

          </body>
        </html>

【问题讨论】:

  • 请回复。我需要帮助。

标签: cordova sencha-touch blackberry-webworks


【解决方案1】:

确保您的配置文件中有正确的访问元素。您需要将 maps.google.com 域列入白名单,以允许您的应用使用其资源。 PhoneGap 网站在白名单域中有more information

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-06-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-01
    相关资源
    最近更新 更多