DEV Community

loading...

Discussion on: Android Vitals - Why did my process start? 🌄

Collapse
pyricau profile image
Py ⚔ Author • Edited

I'm not sure, but I do know we've stuck to only IMPORTANCE_FOREGROUND and didn't include IMPORTANCE_VISIBLE when starting a normal service.

This could also be an unfortunate race condition, ie right after you check the importance that importance changes... and yes there'd likely be nothing to do about it.

Collapse
androiddeveloperlb profile image
AndroidDeveloperLB

I can't find where I got this code. I'm sure it was from Google though, somewhere in the issue tracker.
Why did Google even make this new function?