Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Share Intent on Android - send data TO your app?

I'm pretty sure this is a feature request rather than something we can currently do…

I'd like to be able to do something with data shared via the native Android 'Share' menu. For example, if you have a twitter client installed it will appear on the Android 'Share' menu when you open it from - say - viewing a gallery image in the phone's native gallery app. When selected, the twitter app receives info on the image you had selected, uploads it, etc.

To achieve this I suspect we need:

  1. A way to 'register' our app against a certain content type, so if that content is 'Share'd, our app appears in the menu (I believe we can do this in the manifest.xml).

  2. A way for the app to know it had been launched via the 'share' menu.

  3. A way to accept the data that is being shared.

This feels like a big ask (and it probably is), but if this were possible it would really bring Appcelerator apps into the native scope and unlock a lot of simple-but-awesome ideas.

— asked September 10th 2010 by Andy Smith
  • android
  • intent
  • intents
  • share
1 Comment
  • This is a great idea. I'd like the opposite, too. That is, I'd like to be able to create a Share button that pops up the native Share menu. I'd want to be able to send some data to the app that gets loaded. This way I don't have to re-invent a twitter client to tweet some data, a facebook client to post a status update, and so forth. If this capability exists, I can't find it in the docs or forums.

    — commented September 10th 2010 by Tim Poulsen

2 Answers

  • Did this ever get fully implemented? I figured out how to modify the AndroidManifest.xml file to add the intent filter; however when another app launches mine, I can't figure out how to access the data it sends me.

    — answered July 5th 2011 by Dan Perlberger
    • can you post how you did this?

      — commented July 31st 2011 by andrew royce
    • http://developer.appcelerator.com/question/122035/current-activitys-intent—getdata-returns-null

      — commented July 31st 2011 by Dan Perlberger
  • Several of these items are schedule for the 1.5 timeframe. Put a watch on Ticket 1588 and Ticket 1589to see when the support is starting to be available.

    — answered September 10th 2010 by Don Thorp
    1 Comment
    • fyi, those tickets appear to be private.

      — commented June 10th 2011 by Tom H
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.