Open another activity silently

1

It is as follows; I added a button to open an activity from another app. Is it possible to open only silently, that is, anonymous, invisible, minimized, or better, without the user noticing!?

Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.exemplo.pacote.MainActivity");
        startActivity(launchIntent);
    
asked by anonymous 13.06.2016 / 02:35

1 answer

1

I easily do not know a way to do this. As the other app is not yours, by default there is no way to control this, otherwise it would be a security problem. Imagine I make an application that opens all of your device until it hangs in the background?

    
13.06.2016 / 18:57