I need a way to check if a particular activity is visible or not. I cant use a simple boolean check in onStart and onStop, Since I need to access it in another process. I tried ActivityManager.getRunningTasks() but it gives me onCreate to onDestroy life cycle. I need onStart to onStop lifecyle.
Basically I want to know if the activity is between onStart and onStop.