Reputation: 7856
This is an odd question, but is there any way to run two separate applications inside one app? So, for example, run another application in a view inside of another app? Is this possible? If so, how is this done?
Thanks in advance!
Upvotes: 1
Views: 7100
Reputation: 26
WeChat has hundreds of Mini-Programs can only open via WeChat apps. But that mini-programs is web-based view. Here the official video https://www.youtube.com/watch?v=OKcdUT3ZSwA .
Upvotes: 1
Reputation: 30557
This may be done although it may go against the recommended way of doing things in Android
Android launch app inside view
How to create android app with app widget in single application
An easier alternative may be to launch an intent with the package address:
Intent i = new Intent(Intent.ACTION_MAIN);
i.addCategory(Intent.CATEGORY_LAUNCHER);
i.setPackage("com.otherapp.package");
startActivity(i);
Launching Android app, within an app?
Launch an application from another application on Android
However, please note that, technically, the other app is still in its own process although you it appears to function within the original app.
Launch another application INSIDE an application in Android
Upvotes: 5