Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 16
Registered: ‎04-06-2011
My Device: Playbook
My Carrier: software engineer

How to customize Home screen icon for browser based web apps?

 

I have developed a browser based web application for a PlayBook.

It is taking Screen shot of the current page for Home screen icon

Can you pls tell me "How can i display my own image while creating Home screen icon"?


Developer
Posts: 60
Registered: ‎06-08-2011
My Device: n/a
My Carrier: n/a

Re: How to customize Home screen icon for browser based web apps?

Hello,

 

The icon for a webworks application can be specified in the config.xml page: https://bdsc.webapps.blackberry.com/html5/documentation/ww_developing/icon_element_834676_11.html

 

 But it sounds like you want to dynamically change it. Try the setHomeScreenIcon method:

https://bdsc.webapps.blackberry.com/html5/apis/blackberry.app.html#.setHomeScreenIcon

Note: add <feature id="blackberry.app" /> to your config.xml to be able to access this method.

 

 

Highlighted
Contributor
Posts: 16
Registered: ‎04-06-2011
My Device: Playbook
My Carrier: software engineer

Re: How to customize Home screen icon for browser based web apps?

Thanks for your reply

 

Using webworks API , i know how to create icon using config.xml, For compilation we need to use webworks SDK and creating bar file etc.

 

My question is i want to set my own icon for my html based web apps (no webworks), 

 

in iPad browser allow to create our own icon using <link rel="apple-touch-icon" href="/customIcon.png"/> tag

this tag is not working in playbook, i need the equalent solution for playbook

 

 

Thanks & regards

 

Banu