Results 1 to 6 of 6

Thread: PR3 - phoneStartupScreen and icon paths

  1. #1
    Sencha User
    Join Date
    Apr 2008
    Posts
    17
    Vote Rating
    1
      0  

    Default PR3 - phoneStartupScreen and icon paths

    I have an app with an icon and a phoneStartupScreen defined (see code).

    My app is at url http://localhost:8080/MyApp/mobile
    My index.html is at http://localhost:8080/MyApp/mobile/index.html
    My app.js is at /js/mobile/app.js
    The images are in /images

    What path do I need to use (or where should I place the images) for them to appear for my web app? I've tried:

    icon.png
    images/icon.png
    ../images/icon.png
    ../../images/icon.png

    And none of them show the icon when I try to add my web app to my iphones home screen.

    Code:
    Ext.Loader.setConfig({
        enabled: true,
        paths:{
            'MyApp':'./js/mobile/app'
        }
    });
    
    var App = Ext.application({
        name: 'MyApp',
        controllers: ['Main','Map'],
        
        phoneStartupScreen: '../images/phone_startup.png',
        icon: '../images/icon.png',
        glossOnIcon:false,
        
        launch: function() {
            this.appContext = appContext,
            Ext.create('MyApp.view.Viewport');
        }
    });

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Do you have the app saved to the homescreen? Are they the correct size? Is your phone/tablet in portrait mode (not sure if landscape is working in iOS 5?
    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

  3. #3
    Sencha User rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,159
    Answers
    93
    Vote Rating
    7
      0  

    Default

    I'm not sure if the phoneStartupScreen and other setup methods even exist in PR3. You should try adding them manually using the meta tags for now.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  4. #4
    Sencha Premium Member
    Join Date
    Oct 2011
    Posts
    64
    Answers
    3
    Vote Rating
    0
      0  

    Default

    Is there any chance to use animated gifs in the right format (phone/tablet) as startup screens?
    At this stage i dont get any startupscreens when loading my app

  5. #5
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Pretty sure you have to use png.

    https://gist.github.com/472519
    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

  6. #6
    Sencha Premium Member
    Join Date
    Oct 2011
    Posts
    64
    Answers
    3
    Vote Rating
    0
      0  

    Default

    cool, thanks.
    it also seems like an ipod touch isnt able to display startup pngs either...

Posting Permissions

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