android - Which user action causes a click event -
a click event on desktop generated, when user clicks mouse. dont use mouse smartphone.
so far didnt find way generate click event on touchscreen. there hardware features, whith can "click"?
first, can't ui click events when user on android phone clicks "desktop" (home screen). click events when user clicks in app.
taken handling ui events tutorial:
// create anonymous implementation of onclicklistener private onclicklistener mcorkylistener = new onclicklistener() { public void onclick(view v) { // when button clicked } }; protected void oncreate(bundle savedvalues) { ... // capture our button layout button button = (button)findviewbyid(r.id.corky); // register onclick listener implementation above button.setonclicklistener(mcorkylistener); ... }
Comments
Post a Comment