标签:
http://blog.csdn.net/centralperk/article/details/7269326
ActivityManager manager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
RunningTaskInfo info = manager.getRunningTasks(1).get(0);
String shortClassName = info.topActivity.getShortClassName(); //类名
String className = info.topActivity.getClassName(); //完整类名
String packageName = info.topActivity.getPackageName(); //包名
android-如何获得当前正在运行的activity的相关信息
标签:
原文地址:http://www.cnblogs.com/leaven/p/5485867.html