我的理解是不能返回另一个活动的视图。要标记com.android.settings>蓝牙是目前的观点,我是否正确使用下面的代码?
ActivityManager am = (ActivityManager) this.getSystemService(ACTIVITY_SERVICE);
List< ActivityManager.RunningTaskInfo > taskInfo = am.getRunningTasks(30);
ComponentName componentInfo = null;
String componentInfo_getPackageName;
for(int i = 0;i<taskInfo.size();i++)
{
componentInfo = taskInfo.get(i).topActivity;
componentInfo_getPackageName = componentInfo.getPackageName();
if (componentInfo_getPackageName.contains("settings")){
Class<Object> clazz = null;
componentInfo.getClass().asSubclass(clazz);
}
}