如何从Flex移动另一个应用程序调用的应用程序 [英] How to invoke an app from another app in flex mobile

查看:175
本文介绍了如何从Flex移动另一个应用程序调用的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从空气中另一个应用程序打开一个应用程序?例如:我打开其中包含点击后打开应用程序B中的按钮应用程序中的。假设A和B分开被安装在设备的应用程序,该设备可能是一个剧本,一台iPad或Android平板电脑。

Is there a way to open one app from another app in Air? Example: I open app A which contains a button that opens app B when clicked. Suppose both A and B are separated apps that are installed in the device and that this device could be a PlayBook, an Ipad or an Android tablet.

感谢。

推荐答案

您不得不去AIR本机扩展(ANE)的路线。无论是创建iOS和Android的每一个ANE解决方案,或者一个ANE的abtracts功能集成到一个解决方案。如何启动一个应用程序从Android应用程序B是不一样的iOS上。请参阅<一href="http://stackoverflow.com/questions/5630874/is-there-android-intent-concept-in-iphone-sdk">this回答左右。

You'd have to go the Air Native Extension(ANE) route. Either create one ANE solution for iOS and Android each, or one ANE that abtracts the functionality into one solution. How to launch app A from app B on Android is not the same as on iOS. See this answer in SO.

要在Android上实现它,你会包装在一个ANE原生Android的Java解决方案。本机的Java code使用的应用程序B的包名从应用程序中的启动应用程序B:

To implement it on Android, you'd wraps the native Android Java solution in a ANE. The native Java code uses the package name of app B to launch app B from app A:

Intent intent = getPackageManager().getLaunchIntentForPackage("com.yourdoman.yourapp");
startActivity(intent);

下面是一个关于如何通过ANE发起活动一视频教程,你可以建立在创建ANE。你不得不定制的解决方案通过域,而不是活动推出。

Here is a video tutorial on how to launch an Activity through an ANE which you can build on to create your ANE. You'd have to tailor the solution to launch by domain instead of Activity.

这篇关于如何从Flex移动另一个应用程序调用的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆