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

Reply
Developer
Posts: 64
Registered: ‎09-10-2009
My Device: Z10, Bold 9700
My Carrier: O2 Germany

Wrong icon size in system share menu

I have registered an app for the system share menu of the BlackBerry 10 browser. However I noticed that the icon size is wrong: It vertically fills up the whole line in the list with no empty space to the sides. I noticed the same problem for some other apps I have installed, e.g. Blaq has the same issue. This only seems to affect the share menu of the browser. It doesn't occur if you use the share menu from the Pictures app where the icon is always displayed with space to the sides.

 

Today I read that it's possible to add a second app icon that is only 86x86 px in size:

https://developer.blackberry.com/html5/documentation/icon_element_834676_11.html

 

This seemed to solve the display issue. The app icon was now correctly displayed in the browser's share menu. However this didn't persist for long: After a while I noticed that sometimes the 86x86 px app icon is used and sometimes the 114x114 px app icon.

 

I tried the same using a native Casacdes app and could reproduce the same behavior there. I also noticed that the 86x86 px icon is actually meant to be used on the PlayBook and not on BlackBerry 10.

 

For the Cascades app I found a solution. It's possible to add a 86x86 px icon directly to the invocation target used by the browser:

<invoke-target id="my.native.app.id.openurl">
    <invoke-target-name>My App</invoke-target-name>
    <icon><image>logo-86.png</image></icon>
    <invoke-target-type>application</invoke-target-type>
    <filter>
        <action>bb.action.SHARE</action>
        <mime-type>*</mime-type>
        <property var="uris" value="http://,https://"/>
    </filter>
</invoke-target>

<asset path="logo-86.png">logo-86.png</asset>

 

However the same doesn't work for my WebWorks app:

<rim:invoke-target id="my.webworks.app.id.openurl">
<invoke-target-name>My App</invoke-target-name>
   <icon><image>images/app_icon-86.png</image></icon>
   <type>APPLICATION</type>
   <filter>
       <action>bb.action.SHARE</action>
       <mime-type>*</mime-type>
       <property var="uris" value="http://,https://" />
   </filter>
</rim:invoke-target>

<asset path="images/app_icon-86.png">images/app_icon-86.png</asset>

 

How can I add a specific icon to a WebWorks invoke-target, so that it is always correctly displayed in the browser's share menu?

 

 

----

My Twitter: @hendrik_dev