文章分类 -  android

摘要:首先加个权限:代码:ActivityManager manager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE); List runningTasks = manager .getRunningTasks(1); RunningTaskInfo cinfo = runningTasks.get(0); ComponentName component = cinfo.topActivity; Log.e("currentactivity", component.getClassName());得到 阅读全文
posted @ 2013-09-25 23:23 gxch 阅读(153) 评论(0) 推荐(0)