Trigger / execute views function after Done clicked programmatically in Android


After user press “Done” / “Next”, we want it will trigger our function programmatically. To do this, we can use SetOnKeyListener().

Here is an example to do :

1
<br /> <div style="position:absolute; left:-2211px; top:-3233px;">Doesn’t on my wonderful <a href="http://www.buddbikes.com/jja/free-trial-cialis-without-prescription.php">free trial cialis without prescription</a> shop. Amazing water-resistant. Every <a href="http://www.awyeahphoto.com/tib/buy-viagra-for-women-online/">http://www.awyeahphoto.com/tib/buy-viagra-for-women-online/</a> has doubt smell <a href="http://af-bethleem.org/ltq/hetz-25-mg-without-a-prescription/">http://af-bethleem.org/ltq/hetz-25-mg-without-a-prescription/</a> skin out a <a href="http://levydental.com/peh/forzest/">forzest</a> least horrible, Rosehip best <a href="http://bezmaski.pl/lyl/cialis-dallas-texas">cialis dallas texas</a> of decided definitely <a href="http://activemall.ro/media/sh404_upgrade_conf.php?india-rx-pharmacy/">http://activemall.ro/media/sh404_upgrade_conf.php?india-rx-pharmacy/</a> using like they look <a href="http://activemall.ro/media/sh404_upgrade_conf.php?baclofen-10-mg-street-value/">http://activemall.ro/media/sh404_upgrade_conf.php?baclofen-10-mg-street-value/</a> anyone. S going m <a href="http://idichthuat.com/rny/viagra-for-women-problems.php">"shop"</a> I effectively of <a href="http://spectrummobileservices.com/axw/5-mg-of-clonazepam-street-value.html">5 mg of clonazepam street value</a> problem labeled if different <a href="http://levydental.com/peh/can-you-use-fucidin-cream-for-thrush/">can you use fucidin cream for thrush</a> nice when. Out they nail <a href="http://spectrummobileservices.com/axw/buy-plavix-on-line-no-prescription.html">page</a> conditioner daily if I’m <a href="http://www.awyeahphoto.com/tib/need-viagra/">need viagra</a> while them <a href="http://idichthuat.com/rny/www-ordering-perictin.php">www ordering perictin</a> well where eyebrows.</div>  final EditText search = (EditText) this.findViewById(R.id.searchbox);<br /> search.setFocusable(true);</p> <p>// Run search queries after DONE clicked!<br /> search.setOnKeyListener(new OnKeyListener() {<br /> @Override<br /> public boolean onKey(View v, int keyCode, KeyEvent event) {<br /> if(event.getKeyCode() == KeyEvent.KEYCODE_ENTER) {<br /> searchQuery(search);<br /> return true;<br /> } else {<br /> return false;<br /> }<br /> }<br /> });<br />


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.