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
Post a Comment