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

Adobe AIR Development

Reply
Highlighted
Developer
Posts: 239
Registered: ‎03-14-2012
My Device: PlayBook 2.0
My Carrier: AT&T
Accepted Solution

Does the invocation framework work on a Dev Alpha device?

Hi,

 

Does the invocation framework (to share text or files to an app via the share button) work on a Dev Alpha device?

 

This is my bar-descriptor.xml file - I want to register my app to the share menu with text:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<qnx>
<initialwindow>
<systemchrome>default</systemchrome>
<transparent>false</transparent>
</initialwindow>
<publisher>John Deer</publisher>
<splashscreen>AppIconsForPublish/appname_1280x768_splash_landscape.jpg</splashscreen>
<category>core.media</category>
<buildId>100</buildId>
<platformVersion>1.0.0.0</platformVersion>
<icon>
<image>AppIconsForPublish/appname_114.png</image>
</icon>
<author>John Deer</author>
<authorId>1234567890</authorId>

<invoke-targetid="com.appname.xy.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.appname.xy.app">
<invoke-target-type>APPLICATION</invoke-target-type>
<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>

</qnx>

 Is there something missing?

 

Thanks for any feedback! Smiley Happy

Vibes

 

Developer
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course
My Carrier: Vodafone

Re: Does the invocation framework work on a Dev Alpha device?

Yes, it works, why? Not working for you?

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
Developer
Posts: 239
Registered: ‎03-14-2012
My Device: PlayBook 2.0
My Carrier: AT&T

ItRe: Does the invocation framework work on a Dev Alpha device?

It's not working for my app.

 

I used the above bar-descriptor.xml but my app doesn't show up in the SHARE menu list if I want to share a link from the browser to my app for example. (Only this ones are listed in there: BBM, BBM Group and NFC)

 

Any ideas what I'm missing?

Thanks for your support.

Vibes

 

Developer
Posts: 223
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

Re: ItRe: Does the invocation framework work on a Dev Alpha device?

I think you have to add, at least,  uri patterns:

 

<propertyvar="uris"value="file://; http://, https://"/>

 

 

with file:// you will only be able to open from local files.

 

My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Developer
Posts: 239
Registered: ‎03-14-2012
My Device: PlayBook 2.0
My Carrier: AT&T

Re: ItRe: Does the invocation framework work on a Dev Alpha device?

This is what I want my app to be connected with:

 

FROM:

send text from anywhere to my app:

- local

- browser

- from other apps

 

WHAT:

send anything text related:

- text

- text files

- links

 

Would you be so nice to give me an example bar-descriptor.xml that I could use for that? Smiley Happy

Developer
Posts: 239
Registered: ‎03-14-2012
My Device: PlayBook 2.0
My Carrier: AT&T

Re: ItRe: Does the invocation framework work on a Dev Alpha device?

Already wasted 3 days on this... 

Please anybody show me a full example file! Smiley Sad

Developer
Posts: 223
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

Re: ItRe: Does the invocation framework work on a Dev Alpha device?

I should start with individuals tests and see if it works.

I leave you some samples I'm having and working:

 

Share text to your app:

   <invoke-target id="your.target.id2">
      <invoke-target-type>APPLICATION</invoke-target-type>
      <filter>
         <action>bb.action.SHARE</action>
         <mime-type>text/plain</mime-type>
         <property value="data&colon;//" var="uris"/>
      </filter>
   </invoke-target>
    

Share link to your app:
  <invoke-target id="your.target.id3">
    <type>APPLICATION</type>
       <filter>
             <action>bb.action.SHARE</action>
             <mime-type>*</mime-type>
             <property var="uris" value="http://, https://"/>
       </filter>
  </invoke-target>

 

 This one is for opneing my app with local files with those extensions:

 

    <invoke-target id="your.target.id1">
        <type>APPLICATION</type>
        <filter>
            <action>bb.action.OPEN</action>
            <mime-type>*</mime-type>
            <property value="file://" var="uris" />
            <property value="ext1, ext2" var="exts" />
        </filter>
    </invoke-target>

My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Developer
Posts: 239
Registered: ‎03-14-2012
My Device: PlayBook 2.0
My Carrier: AT&T

Re: ItRe: Does the invocation framework work on a Dev Alpha device?

@osus

 

Many thanks for the examples - will try them later.

 

I own a DEV ALPHA device and I want  make sure that the invocation framework works on it. 

Is an app of yours available that has the share features built in or do you know of one in the BlackBerry World? Maybe you can send me link to a  .bar over DM? Smiley Happy

 

That would be awesome!

 

 

 

Retired
Posts: 249
Registered: ‎07-14-2008
My Device: Not Specified

Re: Does the invocation framework work on a Dev Alpha device?

Hi,

Few things..

 

* You should not use VIEWER type in your target type.

* If you specify both mime and exts, the clients will have to invoke with both of them. Otherwise your target wont be found. Best thing to do is to use * as the mime and then define the exts you want to support. Note that, exts are only used for file://.

 

Shadid