问题
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