private boolean isRunning(android.content.Context p4)
    {
        java.util.Iterator v0_4 = ((android.app.ActivityManager) p4.getSystemService(activity)).getRunningTasks(2147483647).iterator();
        while (v0_4.hasNext()) {
            if (p4.getPackageName().equalsIgnoreCase(((android.app.ActivityManager$RunningTaskInfo) v0_4.next()).baseActivity.getPackageName())) {
                return 1;
            }
        }
        return 0;
    }