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

Native Development

Reply
Developer
Posts: 19
Registered: ‎04-13-2009
My Device: Not Specified
Accepted Solution

Adding App to Contacts Share menu

I need help to make my app apear in the "Share" menu of the BlackBerry Contacts. What MIME type is needed in the bar-description.xml? Do I need URI? Or am I missing something completely? Tried different options without success. Example:

 

<invoke-target id="com.mysite.myapp.share">
<invoke-target-type>application</invoke-target-type>
<invoke-target-name>My App</invoke-target-name>

<icon>
<image>myapp_81x81.png</image>
</icon>
<filter>
<action>bb.action.SHARE</action>
<mime-type>application/vnd.blackberry.contact.id</mime-type>
</filter>

</invoke-target>

 

Help is greately appreciated !

Retired
Posts: 81
Registered: ‎09-09-2013
My Device: BlackBerry Z10
My Carrier: Etisalat UAE

Re: Adding App to Contacts Share menu

Hello 

<invoke-target id="com.mysite.myapp.share">
  <invoke-target-type>application</invoke-target-type>
  <invoke-target-name>My App</invoke-target-name>
  <icon>
    <image>myapp_81x81.png</image>
  </icon>
  <filter>
    <action>bb.action.SHARE</action>
    <mime-type>*</mime-type>
    <property var="uris" value="file://"/> 
<property var="exts" value="vcf"/> <!-- you can remove this line and it will work --> </filter> </invoke-target>

 

Kareem ELSayed | Application Development Consultant | Developer Relations | BlackBerry | Twitter:@kemobyte
Developer
Posts: 19
Registered: ‎04-13-2009
My Device: Not Specified

Re: Adding App to Contacts Share menu

Thanks Kareem, that worked. I appreciate your quick response!