Marouane Gazanayi
Marouane Gazanayi

Reputation: 5183

sencha touch 2 can't launch in my android phone

I followed exactly this tutorial http://docs.sencha.com/touch/2-0/#!/guide/getting_started My application is working on my web browser (in my laptop) and it's been generated for Android. But when I install it and launch it, I still have the loading icon on the blue screen. Any Idea of this ?

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("")
    }
});

Upvotes: 1

Views: 687

Answers (1)

hekomobile
hekomobile

Reputation: 1388

your code have small bugs, please try this:

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

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

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

I hope this helps. :)

enter image description here

Upvotes: 1

Related Questions