public static void openImdbForPerson(Context context,String name){
  if (context == null || TextUtils.isEmpty(name)) {
    return;
  }
  Intent intent=new Intent(Intent.ACTION_VIEW,Uri.parse(String.format(IMDB_APP_PERSON_SEARCH_URI,name)));
  intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
  if (!Utils.tryStartActivity(context,intent)) {
    intent=new Intent(Intent.ACTION_VIEW,Uri.parse(String.format(IMDB_PERSON_SEARCH_URL,name)));
    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
    context.startActivity(intent);
  }
}

public static void openImdbForPerson ( Context context , String name ) { if ( context == null || TextUtils . isEmpty ( name ) ) { return ; } Intent intent = new Intent ( Intent . ACTION_VIEW , Uri . parse ( String . format ( IMDB_APP_PERSON_SEARCH_URI , name ) ) ) ; intent . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET ) ; if ( ! Utils . tryStartActivity ( context , intent ) ) { intent = new Intent ( Intent . ACTION_VIEW , Uri . parse ( String . format ( IMDB_PERSON_SEARCH_URL , name ) ) ) ; intent . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET ) ; context . startActivity ( intent ) ; } }
open the imdb app or web page for the given person name .
