java - CWAC-Camera Take Photo on touch screen -


i've tried implementing onclicklistener on camerafragment, however, never seems called. missing quite simple. have ideas?

public class cwaccamerafragment extends camerafragment implements onclicklistener {  //...  @override public void onclick(view v) {     // todo auto-generated method stub     takepicture();     toast.maketext(getactivity(),"click",         toast.length_long).show(); } 

is there way ensure onclick event occurs?

in demo app, added following democamerafragment:

  @override   public void onstart() {     super.onstart();      getview().setonclicklistener(new view.onclicklistener() {        @override       public void onclick(view v) {         log.e(getclass().getsimplename(), "got here");       }     });   } 

log messages showed fine. hence, afaict, approach works, perhaps there bug in how wired in click listener.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -