1

Is it possible to understand programmatically if the user is on the launcher (he's not using other apps or has not other activities opened)?

Hoconosc
  • 386
  • 8
  • 23

1 Answers1

1

it possible. you can use the solution this links offers:

Determining the current foreground application from a background task or service

if the fourground application equels the launcher - then you know it's the launcher that fourground

Community
  • 1
  • 1
Tal Kanel
  • 10,233
  • 10
  • 58
  • 95