PDA

View Full Version : Button event opening default internet browser wrongly.



vcsiqueira
11 Dec 2012, 8:30 AM
Hey All,

Im using a container with 3 buttons:

View:Ext.define('FirstAppMVC5.view.Inicio',{ extend: 'Ext.Container',
alias: 'widget.inicio',
config: {
fullscreen: true,
layout: {
type: 'vbox',
pack: 'center'
},
items: [
{
xtype : 'toolbar',
docked: 'top',
title: 'Acoes'
},
{
xtype: 'container',
defaults: {
xtype: 'button',
margin: '10 10 0 10'
},
items: [
{
text: 'Assiduidade',
xtype: 'button',
action: 'voltarContatosList'
},
{
text: 'Check List',
xtype: 'button',
action: 'voltarContatosList'
},
{
text: '...',
xtype: 'button',
action: 'voltarContatosList'
},
]
}
]
}
}
)

and the controller:
control: {
'button[action=voltarContatosList]': {
tap: 'showContatosList'
}
},
showContatosList: function(){
Ext.Viewport.setActiveItem(this.getContatosList());
}

and I'm trying in a Samsung Tab 10.1 (Android 3 Level 11)

The problem is, at the first time that I tap on it, the android open an default internet browser. And after I close it everything becomes all right !

Obs: If Im running on Mobile (Android 4.04, 2.1 and 2.3.4) everything run ok.

Someone please, help-me ! Because I have to run on this Tablet.

Kind Regads,

Vinicius

mitchellsimoens
13 Dec 2012, 6:00 AM
Sencha Touch does not support Android 3