Code example for ComponentName

Methods: getClassNamegetPackageName

0
				// //Log.v("baseActivity = " + 
				// mRunningTask.baseActivity.toString()); 
				// //Log.v("topActivity = " + 
				// mRunningTask.topActivity.toString()); 
 
				if (PACKAGE_NAME.equals(runningTaskComponent.getPackageName())
						&& CONVO_CLASS_NAME.equals(runningTaskComponent.getClassName())) {
					// Log.v("User in messaging app - from running task"); 
					return true; 
				} 
			} 
		} 
 
		/* 
		 * List<RecentTaskInfo> mActivityList = mAM.getRecentTasks(1, 0); 
		 * Iterator<RecentTaskInfo> mIterator = mActivityList.iterator(); 
		 *  
		 * if (mIterator.hasNext()) { RecentTaskInfo mRecentTask = 
		 * (RecentTaskInfo) mIterator.next(); Intent recentTaskIntent = 
		 * mRecentTask.baseIntent; 
Experience pair programming with AI  Get Codota for Java