标签:android os cti c r as tt return d
String getTopActivity()
{
ActivityManager manager = (ActivityManager)getSystemService(ACTIVITY_SERVICE);
List<RunningTaskInfo> runningTaskInfos = manager.getRunningTasks(1);
if(runningTaskInfos != null)
{
mRunningCount = runningTaskInfos.get(0).numRunning;
return (runningTaskInfos.get(0).topActivity).toString();
}
else
return null ;
}
标签:android os cti c r as tt return d
原文地址:http://www.cnblogs.com/fly-fish/p/3986312.html