android - Launching activity on tapping in EditText box -
by default in android whenever user tap on edittext box , keyboard pops .
i want whenever user tap on edittext box,it launches activity along keyboard(keyboard thing handled framework) .
for have override
edittext
onfocuschangelistener
edittext edittxt = (edittext) findviewbyid(r.id.youredittext); edittxt.setonfocuschangelistener(new onfocuschangelistener() { @override public void onfocuschange(view v, boolean hasfocus) { if (hasfocus == true) { intent intent = new intent(this, displaymessageactivity.class); startactivity(intent); } } });
Comments
Post a Comment