Can One App Bring Another App to the Foreground?

My app requires a different (non-Kodular) app to come to the foreground for a time, then for my app to return to the foreground. I know my app can send itself to the background, but that leaves no apps in the foreground.

  1. Is there a way to make a different app come to the foreground?
  2. When my app is in the background and another app is in the foreground, can my app bring itself to the foreground?
    Thanks

Use the activity starter

My alarmmanager extension is able to do it… however if the screen is locked, you have to unlock it manually

Taifun

To clarify, I do not need to start another app. The other app will already be running in the background, I just need to bring it to the foreground. Is the activity starter the way to do that?

Yes
Taifun

Thanks, @Taifun. This was my first question on the forum, but I have been lurking for a while and have learned a lot. Thank you for all that you do.

1 Like