kw_init
kw_init

Reputation: 13

Starting another app inside my app

I want to start an app that is shown inside my app. At the moment I just start another app over mine with

Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage(app.getAppID());
startActivity(LaunchIntent);

That works good, but I'd like to let the user know, my app is still in the background. With a colored frame for instance. I thought of loading the new app inside a fragment like with iframes in HTML but could not find a way.

Any help is appreciated.

Upvotes: 0

Views: 530

Answers (2)

j_mcnally
j_mcnally

Reputation: 6968

I think you are confusing applications with activities.

You can run a shared activity in your application but not the entire application. So this would greatly depend on what you are trying to do.

Upvotes: 0

Raghav Sood
Raghav Sood

Reputation: 82573

This is not possible on Android, sorry.

Each app runs in its own process, and there is no way to run one inside another like an iframe.

Upvotes: 2

Related Questions