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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -