Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    3
    Vote Rating
    0
    baamenabar is on a distinguished road

      0  

    Default Unanswered: Ext.device.Connection.getType()

    Unanswered: Ext.device.Connection.getType()


    Hello!
    I'm having trouble with Ext.device.Connection.getType() which is always returning null, I'm listening to onlinechage event, and that is working fine, defectively in network change I see the message, but it says connection type is null.
    Below is the controller I'm using to register the onlinechage event.
    I've packed this for android several times already, and it's always showing null.
    Can anyone tell me what I'm doing wrong? Or at least point me in the right direction.
    Code:
    Ext.define('MIUp.controller.General',{
        extend: 'Ext.app.Controller',
        requires: [
        'Ext.device.Connection'
        ],
    
    
        config: {
            refs: {
                principal:'mainviewport',
            },
            control:{
                'mainviewport button[action=snapPicture]': {
                    tap: 'openCamera'
                }
            }
        },
        openCamera: function(button,eve){
            /* irrelevant */
        },
        launch:function(){
            console.log('This thing has started. with connection:'+ Ext.device.Connection.getType());//null
            Ext.device.Connection.on({
                onlinechange: function( online, type, eOpts ){
                    if(online){
                        Ext.Msg.alert('Connection', 'Connection change, to type:'+ Ext.device.Connection.getType() +'. Is it '+type+'?');
                    }
                }
            });
        }
    });
    Many thanks.

  2. #2
    Sencha User
    Join Date
    May 2012
    Posts
    3
    Vote Rating
    0
    baamenabar is on a distinguished road

      0  

    Default the workaround

    the workaround


    The answer, for me was Cordova. I was going to use Phonegap anyway so no biggie.
    The only thing is that I haven't managed to get the onlinechange event to fire using Cordova, so I'm doing a poll each 30 seconds, that's enough for me.
    I'm guessing asking for a connection status each 30 seconds to the device is not taxing at all.