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
Developer
shaan_softwaredvlpr
Posts: 172
Registered: ‎01-17-2011
My Device: 9500 series

Re: BB10 - How do I get my app listed in the share menu?

I was able to get my app in share while selecting text from browser.

Hope this code can help you.

 

<invoke-target id="com.package.appname">
  <invoke-target-type>APPLICATION</invoke-target-type>
  <invoke-target-name>App Name</invoke-target-name>
  <icon>
		<image>assets/images/common icons/icon.png</image>
	</icon>
  <filter>
    <action>bb.action.VIEW</action>
    <action>bb.action.OPEN</action>
    <action>bb.action.SHARE</action>
    <mime-type>image/png</mime-type>
    <mime-type>image/jpeg</mime-type>
    <mime-type>text/plain</mime-type>
    <property var="uris" value="file://,data&colon;//local"/>
  </filter>
</invoke-target>

 

Please use plain text.
Trusted Contributor
Vibes
Posts: 221
Registered: ‎03-14-2012
My Device: PlayBook 2.0

Re: BB10 - How do I get my app listed in the share menu?

[ Edited ]

Hi,

 

it's not working for some reason! :smileysad:

My app isn't listed in the "share menu dialog" - there is only BBM, BBM Group and NFC.

 

Would you be so nice to post your full bar-description.xml? :smileyhappy:

 

Btw: Do I need to enable something on my device or are there some other pit falls I should be aware of?

Maybe something is wrong with allowing thr ANE to run? 

<action system="true">run_air_native</action>

 

 

Thanks for your support!

Vibes

 

Please use plain text.
Developer
shaan_softwaredvlpr
Posts: 172
Registered: ‎01-17-2011
My Device: 9500 series

Re: BB10 - How do I get my app listed in the share menu?

[ Edited ]

Sure i did few modifications in it. 

Btw what is your OS Version , i have tested it in under 10.9.9.339 using Gold SDK

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<qnx>
	<initialWindow>
		<systemChrome>none</systemChrome>
		<transparent>true</transparent>
	</initialWindow>

	<!-- <buildId>1</buildId> -->
	<permission>access_shared</permission>
	<permission>use_camera</permission>
	<permission>play_audio</permission>
	<permission>set_audio_volume</permission>
	<permission>read_device_identifying_information</permission>
	<splashscreen>assets/images/landscape/splash.png</splashscreen>
	<icon>
		<image>assets/images/common icons/icon.png</image>
	</icon>
	<permission>post_notification</permission>
	<invoke-target id="com.appname.app">
		<invoke-target-type>APPLICATION</invoke-target-type>
		<invoke-target-name>App Name</invoke-target-name>
		<icon>
			<image>assets/images/common icons/icon.png</image>
		</icon>
		<filter>
			<action>bb.action.SHARE</action>
			<mime-type>text/plain</mime-type>
		</filter>
		<filter>
			<action>bb.action.SHARE</action>
			<mime-type>*</mime-type>
			<property var="uris" value="http://,file://,data&colon;//" />
		</filter>
	</invoke-target>
	<action system="true">run_air_native</action>
</qnx>

 I hope this can help you.

 

I have also tried by removing , run_air_native , it was still showing in share menu . 

 

 

 

 

Please use plain text.
Trusted Contributor
Vibes
Posts: 221
Registered: ‎03-14-2012
My Device: PlayBook 2.0

Re: BB10 - How do I get my app listed in the share menu?

[ Edited ]

Still not showing up. :smileysad:

 

I have no idee what I overlook. 

 

2 questions I run into:

 

1. Are there some special permissions needed? Soemthing like "allow access to clipboard" or something?

 

2. Is the icon optional? If not - what are the dimensions for it?

<icon>
 <image>assets/icon.png</image>
</icon>

 Thanks for your support! :smileyhappy:

Please use plain text.
Developer
shaan_softwaredvlpr
Posts: 172
Registered: ‎01-17-2011
My Device: 9500 series

Re: BB10 - How do I get my app listed in the share menu?

I think icon is used to show ur app icon in share menu , i dint tried if there is no icon for invoke-target.
icon dimension as i used is 86 x 86 .
Please use plain text.
Trusted Contributor
Vibes
Posts: 221
Registered: ‎03-14-2012
My Device: PlayBook 2.0

Re: BB10 - How do I get my app listed in the share menu?

How does your "app.xml" look like? 

Do I need to add things like   <allowBrowserInvocation>true</allowBrowserInvocation> ?

 


It drives me nuts. :smileysad:

 

Please use plain text.
Developer
shaan_softwaredvlpr
Posts: 172
Registered: ‎01-17-2011
My Device: 9500 series

Re: BB10 - How do I get my app listed in the share menu?

Are you using As3 Project or Flex mobile project ?
Please use plain text.