PDA

View Full Version : Mobile Device Home Shortcut Icon



r4nd7263
20 Jul 2011, 11:20 AM
I noticed on iPhone 3GS when I bookmarked Kitchen Sink demo to Home screen, it uses Kitchen Sink icon. How is this implemented? Also why doesn't it work on my Samsung Galaxy S (Android)? It comes up as default (I assume built-in Android bookmark) icon.

siebmanb
3 Nov 2011, 2:16 AM
You can use of those lines in your index.html

<link rel="shortcut icon" href="app/img/icon.png" type="image/ico" />
<link rel="apple-touch-icon" type="image/png" href="app/img/icon.png" />


I believe this first one is the shortcut for web app and the second os the shortcut for iPhone installed app.

siebmanb
3 Nov 2011, 2:18 AM
And you also have a property icon for your app

Ext.regApplication({
name: 'app',
defaultUrl: 'Home/index',
icon: 'img/icon.png',
});