My code for opening an input dialog reads as follows:
final AlertDialog.Builder alert = new AlertDialog.Builder(this); alert.setTitle(\"Dialog Title\");
I found this worked in an Alert Dialog called from different places
case R.id.birthyear: case R.id.ymax: input.setInputType(InputType.TYPE_CLASS_NUMBER); break;
Mind you I tried lots of other things too. Seems delicate.