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

随声附和 提交于 2019-11-28 10:03:49

问题


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


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/35210459/can-i-start-a-new-application-but-inside-a-frame-i-have-created

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