Launch external apps.
I'd like to use intent on Android for launching external apps and sending data to them. I think it is a necessary function for many apps. It will be wonderful if it supports both Explicit intent and Implicit intent.
Launching external applications is now available in the Share ANE. This uses explicit intents using the application package name specified to launch an application.
http://airnativeextensions.com/extension/com.distriqt.Share
The simplest example is something like the following where we are launching the instragram application if it is installed:
var app:Application = new Application( “com.instagram.android”, “instagram://” );
if (Share.service.applications.isInstalled( app ))
{
Share.service.applications.launch( app );
}
In addition you can provide, data, action, type and any extras you require to launch the application.
Cheers
distriqt
-
Kotaro commented
Thank you for adopting! I'm looking forward to the new ane.
-
sk commented
Yes! You are amazing, Distriqt!
-
Kotaro commented
Thank you for the reviewing. I think it's very similar to share ANE, but it's a little bit different. I think there are two ways to start application.
[1]. Specify the app to start by app name. (Explicit intent / Custom URL Scheme)
[2]. Specify the app to start by file type. (Implicit intent)
I think Share ANE supports [2]. But if possible, I'd like to start the app by name(Custom URL Scheme). Also I'd like to check if the app exists on the device. For example, if you develop a ebook searching app, you should think you'd like to start specific ebook reader(like a Kindle app). -
I know this idea is an old one, but we are currently reviewing ideas for our next ANE's and were hoping you could explain a little more what you hope to achieve with this ANE and if the recent Share ANE covered this?
-
sk commented
I like this idea too, but isn't it similar to Social Share idea?
-
Anonymous commented
This would enable Instagram sharing support, right?
-
Andrey Popov commented
Great idea! :)