Results 1 to 3 of 3

Thread: Problem with profile devices

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    12
    Vote Rating
    1
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    Try this:

    Ext.create('EurestoMobile.view.phone.Main', {
    fullscreen : true
    });
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    12
    Vote Rating
    1
      0  

    Default

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •