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
    Sep 2013
    Posts
    7
    Vote Rating
    0
    MikeChan is on a distinguished road

      0  

    Default Trouble displaying ext msg feature on android phone with version 4.1.2 (API 16)

    Trouble displaying ext msg feature on android phone with version 4.1.2 (API 16)


    Hi all, i am having issues displaying ext msg features on my android phone with version 4.1.2 (API 16), it does not appear when the time is up on phone, however, it works perfectly with google chrome emulation. Can any 1 help me out in solving ext msg features not occuring in android phone? Thanks in advance!

    The ext msg is suppose to work like this when the time is up, it will display a ext msg and play a sound tune on google chrome as shown in the picture below.

    Capturehns.PNG

    However, while testing on android phone. i do not get the ext msg popping out when time is up as shown on the picture below.

    ss2.png

  2. #2
    Sencha Premium Member Salakar's Avatar
    Join Date
    Aug 2013
    Location
    Nottingham
    Posts
    90
    Vote Rating
    4
    Salakar is on a distinguished road

      0  

    Default


    Could you post your code and I'll take a look. Thanks

  3. #3
    Sencha User
    Join Date
    Sep 2013
    Posts
    7
    Vote Rating
    0
    MikeChan is on a distinguished road

      0  

    Default


    Code:
    Ext.define('MyApp.controller.Timer', {    extend: 'Ext.app.Controller',
    
    
        config: {
            refs: {
                timerDisplay: 'timer #timerDisplay',
                timeField: 'timer #timeField',
                dateField: 'timer #dateField',
                startButton: 'timer #startButton',
                resetButton: 'timer #resetButton',
                minuteField: 'timer #minuteField'
            },
    
    
            control: {
                "button#resetButton": {
                    tap: 'onResetButtonTap'
                },
                "button#startButton": {
                    tap: 'onStartButtonTap'
                }
            }
        },
    
    
        onResetButtonTap: function(button, e, eOpts) {
            var dateField = this.getDateField(),
                timeField = this.getTimeField(),
                resetButton = this.getResetButton(),
                startButton = this.getStartButton(),
                timerDisplay = this.getTimerDisplay();
    
    
            // Set UI state
            startButton.enable();
            dateField.enable();
            timeField.enable();
            resetButton.disable();
            dateField.setValue('');
            timeField.setValue('');
    
    
            // Clear interval counter
            clearInterval(this.interval);
    
    
            // Clear display
            timerDisplay.setHtml('');
    
    
        },
    
    
        onStartButtonTap: function(button, e, eOpts) {
            var DISPLAY_FORMAT = "<big>{0} Days , {1} Hours , {2} Minutes , {3} Seconds</big>";
    
    
            var me = this,
                dateField = me.getDateField(),
                timeField = me.getTimeField(),
                minuteField = me.getMinuteField(),
                date = dateField.getValue(),
                time = (timeField.getValue() && minuteField.getValue()),
                resetButton = me.getResetButton(),
                startButton = me.getStartButton(),
                timerDisplay = me.getTimerDisplay();
    
    
            // Ensure date and time have been entered
            if (date && time) {
    
    
                // Add time to date
                date.setHours(timeField.getValue());
                date.setMinutes(minuteField.getValue());
    
    
                // Ensure date is greater than present
                if (date.getTime() > new Date().getTime()) {
    
    
                    // Set UI state
                    startButton.disable();
                    minuteField.disable();
                    dateField.disable();
                    timeField.disable();
                    resetButton.enable();
    
    
                    // Variables for time units
                    var days, hours, minutes, seconds; 
    
    
                    // Start timer
                    me.interval = setInterval(function() {
    
    
                        // Calculate seconds left
                        var currentDate = new Date().getTime(),
                            secondsLeft = (date - currentDate) / 1000;
    
    
                        if (secondsLeft <= 0) {
                            clearInterval(me.interval);
                            me.reset();
                            me.complete();
                        }
    
    
                        // Update state
                        days = parseInt((secondsLeft / 86400),10);
                        secondsLeft = secondsLeft % 86400;     
                        hours = parseInt((secondsLeft / 3600),10);
                        secondsLeft = secondsLeft % 3600;     
                        minutes = parseInt((secondsLeft / 60),10);
                        seconds = parseInt((secondsLeft % 60),10);        
    
    
                        // Update display	
                        timerDisplay.setHtml(Ext.String.format(DISPLAY_FORMAT, days, hours, minutes, seconds));
    
    
    
    
                    }, 1000);
    
    
                }
    
    
                else {
                    Ext.Msg.alert('Alert', 'Date must be in the future.');    
                }
    
    
            }
    
    
            else {
                Ext.Msg.alert('Alert', 'Please enter a valid start date and time.'); 
            }
        },
    
    
        complete: function() {
            Ext.Msg.alert('Time is up!');
        },
    
    
        reset: function() {
            var dateField = this.getDateField(),
                timeField = this.getTimeField(),
                resetButton = this.getResetButton(),
                startButton = this.getStartButton(),
                timerDisplay = this.getTimerDisplay();
    
    
            // Set UI state
            startButton.enable();
            dateField.enable();
            timeField.enable();
            resetButton.disable();
            dateField.setValue('');
            timeField.setValue('');
    
    
            // Clear interval counter
            clearInterval(this.interval);
    
    
            // Clear display
            timerDisplay.setHtml('');
    
    
        }
    
    
    });

  4. #4
    Sencha Premium Member Salakar's Avatar
    Join Date
    Aug 2013
    Location
    Nottingham
    Posts
    90
    Vote Rating
    4
    Salakar is on a distinguished road

      0  

    Default


    Do your other 'ALERT' messages work on android or is it just the timer up one that is not working?

    Try changing your time up alert to:

    PHP Code:
    Ext.Msg.alert('''Time is up!'Ext.emptyFn); 

Thread Participants: 1