protected boolean clickIfMatchesDescription(Intent intent,String actionName,String extraName){
  String action=intent.getAction();
  if (actionName.equals(action)) {
    String description=intent.getStringExtra(extraName);
    if (mContentDescription.equalsIgnoreCase(description)) {
      SantaLog.d(TAG,String.format("Voice command: [%s] [%s]",actionName,description));
      onClick(mClickTarget);
      return true;
    }
  }
  return false;
}

protected boolean clickIfMatchesDescription ( Intent intent , String actionName , String extraName ) { String action = intent . getAction ( ) ; if ( actionName . equals ( action ) ) { String description = intent . getStringExtra ( extraName ) ; if ( mContentDescription . equalsIgnoreCase ( description ) ) { SantaLog . d ( TAG , String . format ( "Voice command: [%s] [%s]" , actionName , description ) ) ; onClick ( mClickTarget ) ; return true ; } } return false ; }
convenience method used for launching games . simulate onclick event if the intent received is of the type specified by actionname and the extra value matches the content description of the current instance .
