public static AlertDialog showList(Activity activity,String title,Set<String> items){
  CharSequence[] chars=items.toArray(new CharSequence[items.size()]);
  AlertDialog.Builder builder=new AlertDialog.Builder(activity);
  builder.setTitle(title);
  builder.setCancelable(false);
  builder.setPositiveButton(R.string.label_ok,null);
  builder.setItems(chars,null);
  return builder.show();
}

public static AlertDialog showList ( Activity activity , String title , Set < String > items ) { CharSequence [ ] chars = items . toArray ( new CharSequence [ items . size ( ) ] ) ; AlertDialog . Builder builder = new AlertDialog . Builder ( activity ) ; builder . setTitle ( title ) ; builder . setCancelable ( false ) ; builder . setPositiveButton ( R . string . label_ok , null ) ; builder . setItems ( chars , null ) ; return builder . show ( ) ; }
show an info with a specific title
