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

前端 未结 2 1392
滥情空心
滥情空心 2020-12-21 13:04

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?

相关标签:
2条回答
  • 2020-12-21 13:15

    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.

    0 讨论(0)
  • 2020-12-21 13:34

    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.

    0 讨论(0)
提交回复
热议问题