private void fillResolveList(List<ResolveInfo> list){
  ensureIntents();
  PackageManager pm=getPackageManager();
  list.clear();
  if (mDisplayMode == DISPLAY_MODE_LAUNCH) {
    list.addAll(pm.queryIntentActivities(sLaunchIntent,0));
  }
 else   if (mDisplayMode == DISPLAY_MODE_SHORTCUT) {
    list.addAll(pm.queryIntentActivities(sShortcutIntent,0));
  }
}

private void fillResolveList ( List < ResolveInfo > list ) { ensureIntents ( ) ; PackageManager pm = getPackageManager ( ) ; list . clear ( ) ; if ( mDisplayMode == DISPLAY_MODE_LAUNCH ) { list . addAll ( pm . queryIntentActivities ( sLaunchIntent , 0 ) ) ; } else if ( mDisplayMode == DISPLAY_MODE_SHORTCUT ) { list . addAll ( pm . queryIntentActivities ( sShortcutIntent , 0 ) ) ; } }
gets all activities matching our current display mode .
