Can I start a new application but inside a “frame” I have created?

烈酒焚心 提交于 2019-11-29 16:24:05

Not generally. You cannot embed the UI of another app in your app. The primary exception to that is via app widgets, if you implement an AppWidgetHost.

Is it possible to from my app to start another (any other) application but the new application to be displayed inside a frame I have created?

Basically, not. When you start an application component registered within another application manifest file, a new process for this component will be created (if not already running) and the component will run within the newly created application process. Although for a user it looks like it's running within your app.

App Components (at the end of the section) might clarify some aspects.

Edit (with respect to the comments):

You can't add a new UI control (talking about Activities) to the component of the newly started (or brought to foreground) application by the reason of running on different process.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!