Open another activity silently

Asked

Viewed 47 times

1

Here’s the thing; I added a button to open an activity from another app. It is 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);
  • In what sense would you be "open", then? The other app is yours?

  • Hello friend, then, the "open" sense, would be making a process only in the background. It would be "open" in the background. No, the other app is not mine.

  • Hello friend, I recommend reading about services and a read here: http://stackoverflow.com/questions/15292779/create-new-intent-in-background

1 answer

1

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.