Code example for Intent

Methods: getComponent

0
    } 
  } 
 
  @Override 
  public Drawable getActivityIcon(Intent intent) {
    return drawableList.get(intent.getComponent());
  } 
 
  @Override 
  public Drawable getActivityIcon(ComponentName componentName) {
    return drawableList.get(componentName);
  } 
 
  public void addActivityIcon(ComponentName component, Drawable d) {
    drawableList.put(component, d);
  } 
 
  public void addActivityIcon(Intent intent, Drawable d) {
    drawableList.put(intent.getComponent(), d);
  }