1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    12
    Vote Rating
    1
    a7xntho is on a distinguished road

      0  

    Default Answered: Problem with profile devices

    Answered: Problem with profile devices


    Hello,

    i am programming an application with differents devices supports but i have a problem with that.
    I just write a little example explain my problem :
    The launch function of the profile phone is launched, my browser alert 'ok', but nothing is displayed.

    I don't know why (i already follow the profile devices tutorial)

    Code:
    Ext.application({    name: 'EurestoMobile',
        profiles: ['Phone']
    });
    
    
    Ext.define('EurestoMobile.profile.Phone', {
    
    
        extend: 'Ext.app.Profile',
    
    
        config : {
            name      : 'Phone',
            namespace : 'Phone',
            views     : [ 'Main' ]
        },
        isActive: function() {
              return Ext.os.is.Phone || Ext.os.is.Desktop;
        },
        
        launch: function() {
            alert('ok');
            Ext.create('EurestoMobile.view.phone.Main');
        }
    });
    
    Ext.define('EurestoMobile.view.phone.Main', {
    
    
        extend: 'Ext.Panel',
    
    
        config: {
            items: [
                {
                    html :'phone profile'
                }
            ]
        }
    });
    Thanks !
    (I'm french, so forgiveness for any mistakes)

  2. Try this:

    Ext.create('EurestoMobile.view.phone.Main', {
    fullscreen : true
    });

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,327
    Answers
    3540
    Vote Rating
    850
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Try this:

    Ext.create('EurestoMobile.view.phone.Main', {
    fullscreen : true
    });
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    12
    Vote Rating
    1
    a7xntho is on a distinguished road

      0  

    Default


    Thanks !
    I'm migrating my app from Touch 1 . The comportment is better but different ^^

Thread Participants: 1

Tags for this Thread