Code example for ComponentName

Methods: equals

            RunningTaskInfo nextTask = tasks.get(1);
            // if we're looking at this application's base/launcher Activity, 
            // and the next task is the Android home screen, then we know we're 
            // about to close the app 
            if (currentTask.topActivity.equals(currentTask.baseActivity)
                    && nextTask.baseActivity.getPackageName().startsWith("")) {
                DroidFuApplication application = (DroidFuApplication) context
Stop searching for code, let great code find you!  Add Codota to your java IDE