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
  • 416
  • 9
  • 24

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,475
  • 10
  • 60
  • 98