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:
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).
A way for the app to know it had been launched via the 'share' menu.
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.
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.
-
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.