how can I catch the event when click occurs somewhere on the app screen? It doesn\'t matter if there is a button or something else. I just need to apply an onClick()>
onClick()>
You can also directly set a callback from the onClick xml attribute of the root layout:
onClick
And in your activity:
public void myMethod(View pView) { //XXX do something }
Less bloated code this way :)