ActivityManager manager = (ActivityManager)getSystemService(ACTIVITY_SERVICE);
RunningTaskInfo runningTaskInfo = manager.getRunningTasks(1).get(0);
Log.v("TAG", "getClassName:"+runningTaskInfo.baseActivity.getPackageName());
ActivityManager manager = (ActivityManager)getSystemService(ACTIVITY_SERVICE);
RunningTaskInfo runningTaskInfo = manager.getRunningTasks(1).get(0);
Log.v("TAG", "getClassName:"+runningTaskInfo.baseActivity.getPackageName());