PDA

View Full Version : How to configure a startup screen?



parky128
23 Jan 2012, 1:05 PM
Hi,

How and where would I configure a startup screen image to load for phone and tablet devices in a ST2 MVC structured application?

I see from the documentation that the init function is called before the launch function on Ext.application. Would it be in here?

Thanks

parky128
23 Jan 2012, 2:27 PM
Are there any examples of these in the demos?

rdougan
23 Jan 2012, 3:37 PM
You can define them in Ext.setup/Ext.application using the phoneStartupScreen and tabletStartupScreen configurations:


Ext.setup({
tabletStartupScreen: 'Default-Tablet.png',
phoneStartupScreen: 'Default-Phone.png',
onReady: function() {
//...
}
});

edspencer
23 Jan 2012, 5:59 PM
@parky128 check out the Ext.app.Application docs in the newly-released 2.0 PR4 for more details on setting this up - http://dev.sencha.com/deploy/sencha-touch-2-pr4/docs/#!/api/Ext.app.Application

We also use these configurations in the Kitchen Sink example - open up http://dev.sencha.com/deploy/sencha-touch-2-pr4/examples/kitchensink/ on an iOS device and add to home screen to see this (Android home screen support coming soon)