I have a View that has a button. On the button click, I want the soft keyboard to pop up with numbers. I can use toggleSoftInput, however, I see no way to change the input type.
public class TimerOnClickListener implements View.OnClickListener {
    @Override
    public void onClick( View view ) {
        Context context = view.getContext();
        InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
        imm.toggleSoftInput( 0, 0 );
    }
}
How can I toggle the input with numbers only?
 
     
     
     
    