My project has 2 applications (A & B) communicating to each other. A will access to B's database via ContentProvider. What I want is from A checking if B is running (Running here I mean B is on current tasks tray).
All answers I've found via Google led me to use Android.App.ActivityManager.RunningAppProcessInfo
However, because A is accessing B's DB via ContentProvider then B is in runningapp list even when B is not on current tasks tray (ReasonCode is RunningAppProcessInfo.ImportanceReasonCode
Is there any way that A can check if B is really in tasks tray?