运行sencha + phonegap +黑莓 [英] running sencha + phonegap + blackberry

查看:236
本文介绍了运行sencha + phonegap +黑莓的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用黑莓phonegap运行sencha应用程序。
1.使用命令创建sencha应用程序(sencha应用程序构建包)
2.created黑莓phonegap项目和下创建www文件夹
3.复制所有文件从sench构建和粘贴www文件夹
4.运行黑莓手机项目
运行项目后,我得到白屏。可以让任何人告诉我我做错了什么。

I runing sencha application using blackberry phonegap.for this steps i following; 1. make build of sencha application using command(sencha app build package) 2.created blackberry phonegap project and under this created www folder 3. copied all files from sench build and paste in the www folder 4. run blackberry phonegap project after running project i get white screen. can please anyone tell me what i'm doing wrong.

我的index.html代码是:

my index.html code is:

 <!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>


推荐答案

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

Ensure you have the proper access elements in your config file. You will need to whitelist the maps.google.com domain to allow your app to use their resources. The PhoneGap website has more information on whitelisting domains.

这篇关于运行sencha + phonegap +黑莓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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