2012-07-12 72 views
1

我完全按照本教程http://docs.sencha.com/touch/2-0/#!/guide/getting_started 我的应用程序正在使用我的网络浏览器(在我的笔记本电脑上),它已经为Android生成。但是当我安装并启动它时,我仍然在蓝色屏幕上显示加载图标。 任何想法?sencha touch 2无法在我的android手机中启动

日Thnx

Ext.define("GS.view.Main", { 
    extend: 'Ext.tab.Panel', 
    requires: [ 
     'Ext.TitleBar' 
    ], 
    config: { 
     tabBarPosition: 'bottom', 

     items: [{ 
       xtype : 'homePanel' 
      } 
     ] 
    } 
}); 


Ext.define('GS.view.Home', { 
    extend : Ext.Panel, 
    xtype : 'homePanel', 

    config : { 
     title : 'Home', 
     iconCls : 'home', 
     scrollable : true, 
     styleHtmlContent : true, 

     html: [ 
      '<img src="http://staging.sencha.com/img/sencha.png" />', 
      '<h1>Welcome to Sencha Touch</h1>', 
      "<p>You're creating the Getting Started app. This demonstrates how ", 
      "to use tabs, lists and forms to create a simple app</p>", 
      '<h2>Sencha Touch (2.0.0)</h2>' 
     ].join("") 
    } 
}); 
+1

你用什么Android操作系统和浏览器的版本? – Will 2012-07-12 19:20:25

+0

在我的手机上它是ICS,并在packager.json“androidAPILevel”:“15” 我的浏览器是铬20 – 2012-07-12 19:27:04

+1

Logcat?你有什么尝试?资源? – t0mm13b 2012-07-12 19:27:54

回答

1

你的代码有小错误,请试试这个:

Ext.define('GS.view.Main' , { 
    extend: 'Ext.TabPanel', 

    config: { 
     fullscreen: true, 
     styleHtmlContent: true, 
     tabBarPosition: 'bottom', 

     items: [{ 
       xtype : 'homePanel' 
       } 
     ] 
    } 
}); 

我希望这有助于。 :)

enter image description here

+0

它与我的代码在浏览器(计算机的浏览器)上工作,但是当我将它构建为原生android应用程序时,它仍在加载... – 2012-07-14 21:29:34