PDA

View Full Version : [FIXED] How to setup homescreen icon and startup image ?



jairok
12 Oct 2011, 12:29 PM
All is in the question.

Thanks

jay@moduscreate.com
12 Oct 2011, 1:04 PM
Good question. We used to have that in Ext.setup(), but that's not something that is documented, yet it exists.

I got it done via:



<link rel="apple-touch-startup-image" media="screen and (resolution: 326dpi)" href="js/app/resources/img/startup_640.png" />
<link rel="apple-touch-startup-image" media="screen and (resolution: 163dpi)" href="js/app/resources/img/startup.png" />

jairok
12 Oct 2011, 1:28 PM
Ext.setup exists, but when you call it you get this error :

Uncaught Error: Ext.setup has already been called before

jairok
12 Oct 2011, 1:31 PM
your solution with the <link> tags works for startup splash.
But what's about the homescreen icon ?:D

Jacky Nguyen
12 Oct 2011, 1:44 PM
Homescreen and app icons config for Ext.setup will come back in the next release.

jairok
12 Oct 2011, 9:55 PM
Great news !
a release date already ?

soundsofpolaris
13 Oct 2011, 11:08 AM
So, is there a next release date? Homescreen icon is one of those "it has to be there to use this" sort of things.

Jamie Avins
13 Oct 2011, 11:39 AM
So, is there a next release date? Homescreen icon is one of those "it has to be there to use this" sort of things.
We really cannot commit to dates. As soon as we can get something into your hands we will do so. Please keep in mind that with the conference about a week away, many of the devs (myself included) are going to be out for a bit.

soundsofpolaris
13 Oct 2011, 12:21 PM
Thanks Jamie. I think we're all just excited to start using ST2. Cheers and good luck!

mikeamiller
21 Dec 2011, 1:39 PM
Hi - Is this still an issue with Sencha Touch 2? I am trying to use Ext.setup but it is not working.

edspencer
22 Jan 2012, 4:22 PM
This is fixed (and documented!), will be present from PR4 onwards

jay@moduscreate.com
22 Jan 2012, 4:49 PM
This is fixed (and documented!), will be present from PR4 onwards

Will PR4 be released soon?

edspencer
22 Jan 2012, 5:00 PM
Yes, very

edspencer
23 Jan 2012, 8:53 PM
It's out :)

TommyMaintz
5 Feb 2012, 2:16 PM
Just in case someone hasn't found this in the docs yet, since PR4 you can do:



Ext.application({
name: 'MyApp',

icon: 'resources/img/icon.png',
glossOnIcon: false,
phoneStartupScreen: 'resources/img/phone_startup.png',
tabletStartupScreen: 'resources/img/tablet_startup.png'
});