Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8651789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:09:21+00:00 2026-06-12T14:09:21+00:00

I started from the Carousel example in Sencha Touch 2.1. In the app.js file,

  • 0

I started from the Carousel example in Sencha Touch 2.1. In the app.js file, I see the “startupImage” property that defines the different sizes of the images we want to use. Yet, I can’t seem to find any documentation about this property. In the docs, they talk about “” and “” which are specific to the Apple iOS world. But if we use Sencha Touch, it’s because we dont wanna be tied to a specific company (it seems obvious).

What I want to know is, how does it works ? There is 2 parameters, one is a resoluton and the second is the path to the png file. Can we modify the first parameter or do we have to make png files that fit those numbers ?

Ext.application({    

    name: 'TestSencha',

    requires: [
        'Ext.MessageBox'
    ],

    views: ['Main', 'PicViewer', 'Extras'],

    icon: {
        '57': 'resources/icons/Icon.png',
        '72': 'resources/icons/Icon~ipad.png',
        '114': 'resources/icons/Icon@2x.png',
        '144': 'resources/icons/Icon~ipad@2x.png'
    },

    isIconPrecomposed: true,

   startupImage: {
       '320x460': 'resources/startup/320x460.jpg',
       '640x920': 'resources/startup/640x920.png',
       '768x1004': 'resources/startup/768x1004.png',
       '748x1024': 'resources/startup/748x1024.png',
       '1536x2008': 'resources/startup/1536x2008.png',
       '1496x2048': 'resources/startup/1496x2048.png'
    },

// rest of code goes here....
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:09:22+00:00Added an answer on June 12, 2026 at 2:09 pm

    I suggest you take a look at src/core/Ext-more.js in the ST2 SDK.

    Basically it scans the startupImage defined in the config of the application and test the OS of the device and its device ratio and call the addStartupImage like so

    if (Ext.os.is.iPad) {
        if (devicePixelRatio >= 2) {
            // Retina iPad - Landscape
            if ('1496x2048' in startupImage) {
                addStartupImage(startupImage['1496x2048'], '(orientation: landscape)');
            }
    ...
    

    And here is the addStartupImage :

    function addStartupImage(href, media) {
        var link = document.createElement('link');
        link.setAttribute('rel', 'apple-touch-startup-image');
        link.setAttribute('href', href);
        if (media) {
            link.setAttribute('media', media);
        }
        head.append(link);
    }
    

    Here’s for the explanation.

    Hope this helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How Can I Check To See If App was Started From A CD/DVD in
I always read that only url-like services can be started from an app in
How can i find out if a C# App has been started from the
git status tells me that my branch and the one I started from on
I'm trying to setup a simple timer that gets started from a Rails Application.
On a linux box I've got a python script that's always started from predefined
I have two Android notifications that get started from my main (not at the
I'm looking to have a class (subclassed from threading.Thread) that is initialised and started
I have a program (Crafty chess) that works just fine when started from the
I am aware that nodes can be started from the shell. What I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.