private void showSkadeType() { AlertDialog.Builder builder = new AlertDialog.Builder(BeskrivActivity.this.getParent()); builder.setTitle("Skadetype"); int checkedIndex = -1; for (int i=0; i 18) printString = printString.substring(0, 17).concat("..."); typeText.setText(printString); } }); AlertDialog alert = builder.create(); alert.show(); }