1

How I can handle event of soft keyboard that from phone type

view story
linux-howto

http://stackoverflow.com – I want to write text from soft keyboard from inputtype phone ( as in pic) but I no know how to handle event it and this my code : public class MainActivity extends Activity implements OnKeyListener { EditText editText2; public void onCreate(Bundle savedInstanceState) { super.onCreate (savedInstanceState); setContentView(R.layout.activity_main); editText2 = (EditText) findViewById(R.id.editText2); editText2.setOnKeyListener(this); editText2.setInputType(InputType.TYPE_CLASS_PHONE); } public boolean onKey(View view, int keyCode, KeyEvent eve (HowTos)