开始我的应用程序在另一个应用程序 [英] Starting another app inside my app

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

问题描述

我要开始就是我的应用程序内显示的应用程序。此刻,我刚开始在我的另一个应用程序以

I want to start an app that is shown inside my app. At the moment I just start another app over mine with

Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage(app.getAppID());
startActivity(LaunchIntent);

这工作不错,但我希望让用户知道,我的应用程序仍然在后台运行。与例如是彩色框。我想装一个片段内的新的应用程序像在HTML内部框架,但无法找到一种方式。

That works good, but I'd like to let the user know, my app is still in the background. With a colored frame for instance. I thought of loading the new app inside a fragment like with iframes in HTML but could not find a way.

任何帮助是AP preciated。

Any help is appreciated.

推荐答案

这是不可能的,在Android上遗憾。

This is not possible on Android, sorry.

每个应用程序在自己的进程中运行,并且没有办法运行一个在另一个像一个iframe中。

Each app runs in its own process, and there is no way to run one inside another like an iframe.

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

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