Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/209.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sencha Touch 2-旋转木马初始化事件在Chrome中触发,但在Android智能手机上不触发_Android_Sencha Touch_Initialization_Carousel_Sencha Touch 2.2 - Fatal编程技术网

Sencha Touch 2-旋转木马初始化事件在Chrome中触发,但在Android智能手机上不触发

Sencha Touch 2-旋转木马初始化事件在Chrome中触发,但在Android智能手机上不触发,android,sencha-touch,initialization,carousel,sencha-touch-2.2,Android,Sencha Touch,Initialization,Carousel,Sencha Touch 2.2,在我的ST2应用程序中,我创建了一个包含旋转木马元素的面板。 此旋转木马必须动态填充来自我的商店的图像 我的问题是,下面显示的代码在Chrome中运行良好,但当我打包应用程序并将其安装到Galaxy S2上时,初始化事件不会触发 有人建议这里可能有什么问题吗? 我认为androis使用的浏览器是基于谷歌chrome浏览器的,所以它应该也能工作 代码: createPanelBalloonSelect: function() { panelBalloonSelect = Ext.Viewp

在我的ST2应用程序中,我创建了一个包含旋转木马元素的面板。 此旋转木马必须动态填充来自我的商店的图像

我的问题是,下面显示的代码在Chrome中运行良好,但当我打包应用程序并将其安装到Galaxy S2上时,初始化事件不会触发

有人建议这里可能有什么问题吗? 我认为androis使用的浏览器是基于谷歌chrome浏览器的,所以它应该也能工作

代码:

createPanelBalloonSelect: function() {
    panelBalloonSelect = Ext.Viewport.add({            
        xtype: 'panel',

        centered: true,
        styleHtmlContent: true,
        width: '90%',
        height: '70%',            
        modal: true,
        scope: this,

        layout: {
            type: 'vbox',
            align: 'stretch'
        },

        items: [
            {
                xtype: 'toolbar',
                title: 'Auswahl Ballon',
                docked: 'top'
            },
            {
                xtype: 'carousel',
                id: 'myCarousel',
                flex: 1,

                items: [],

                config: {
                    initialize:  function() {
                        console.log('ich initialisiere!');
                        drawingsStore = Ext.getStore('drawingsStore');      
                        data = drawingsStore.getRange();

                        console.log('data: ' + data);

                        for(var i=0;i<data.length;i++){

                            console.log('ich adde');

                            this.add({
                                xtype: 'image',                            
                                src: data[i].data.canvasData,
                                cls: 'card'
                            });
                        }
                    }
                },

                defaults: {
                    listeners: {
                        activate: function(newActive, self, oldActive, opt) {
                            choosenBalloon = self.getActiveIndex();
                            console.log(choosenBalloon);
                        }
                    }
                }
            },
            {
                xtype: 'button',
                text: 'OK',
                name: 'btnAcceptTemplate',
                scope: this,
                handler: function() {
                    this.setBalloonSrc(data[choosenBalloon].data.canvasData);
                    //this.drawBalloon();                        
                    this.initSzeneryCanvas();       
                    panelBalloonSelect.destroy();
                }
            }               
        ]            
    });           
},
createPanelBallodSelect:function(){
PanelBalloadSelect=Ext.Viewport.add({
xtype:'面板',
对,,
styleHtmlContent:对,
宽度:“90%”,
身高:70%,
莫代尔:是的,
范围:本,,
布局:{
键入:“vbox”,
对齐:“拉伸”
},
项目:[
{
xtype:'工具栏',
标题:“Auswahl Ballon”,
停靠:“顶部”
},
{
xtype:'旋转木马',
id:'我的旋转木马',
弹性:1,
项目:[],
配置:{
初始化:函数(){
console.log('ich initialisiere!');
drawingstore=Ext.getStore('drawingstore');
data=drawingstore.getRange();
console.log('数据:'+数据);

对于(var i=0;我在chrome开发者控制台中看到任何警告了吗?