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.
01-22-2013 01:27 PM
how do I get my app listed in the share menu?
I would like that a user can share selected text with my app.
I already added the BB10 invocation framework.
What do I need to add to my bar-desciptor.xml file to make that happend?
Thanks for any examples!
01-22-2013 02:02 PM
01-22-2013 02:31 PM
This is from my bar-descriptor.xml:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <qnx> <initialwindow> <systemchrome>default</systemchrome> <transparent>false</transparent> </initialwindow> <publisher>Jay Dee</publisher> <splashscreen>AppIconsForPublish/myapp_splash.jpg<
/splashscreen> <category>core.media</category> <buildId>100</buildId> <platformVersion>22.214.171.124</platformVersion> <icon> <image>AppIconsForPublish/myapp_114.png</image> </icon> <author>Jay Dee</author> <authorId>abcdefg</authorId> <invoke-target id="com.myapp.bb"> <invoke-target-type>application</invoke-target-typ e> <filter> <action>bb.action.OPEN</action> <mime-type>text/plain</mime-type> </filter> </invoke-target> <action system="true">run_air_native</action> </qnx>
I want to allow other apps to send text to my app over the share menu.
What is wrong with the code?
01-22-2013 02:57 PM - edited 01-22-2013 02:57 PM
Try capital APPLICATION
Make certain your id is unique based on the type of target ("com.myapp.bb.app") vs. viewer.
You said you want to "share" but your action is "open". If you want to share, then it is "bb.action.SHARE".
01-22-2013 03:24 PM
You said you want to "share" but your action is "open". If you want to share, then it is "bb.action.SHARE
That one is confusing for me.
My app should launch after a user selected a text (in the browser or other app) and shared it over the "share menu" to my app.
That text should be passed into my then.
Do I need OPEN or SHARE for that?
Thanks for your help.
01-22-2013 07:29 PM
01-22-2013 07:44 PM
Tried this code but my app doesn't show up in the "share menu":
<invoke-targetid="com.myapp.bb.viewer"> <type>VIEWER</type> <filter> <action>bb.action.OPEN</action> <mime-type>text/csv</mime-type> <mime-type>text/xls</mime-type> <mime-type>text/plain</mime-type> </filter> </invoke-target> <invoke-target id="com.myapp.bb.app"> <invoke-target-type>APPLICATION</invoke-target-typ
e> <filter> <action>bb.action.SHARE</action> <mime-type>text/csv</mime-type> <mime-type>text/xls</mime-type> <mime-type>text/plain</mime-type> <mime-type>text/*</mime-type> <propertyvar="uris"value="file://"/> <propertyvar="exts"value="csv,xls,plain"/> </filter> </invoke-target> <action system="true">run_air_native</action>
Should the code work?
Maybe the QNDEVICE.ane AIr native extension is not working?
01-22-2013 07:48 PM
01-23-2013 02:35 AM
I just got this working with Images, made a super simple post about it, might help ya out:
I'm showing up in the share menu now, and loading images just fine.