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()
Give your main layout an id, then
LinearLayout root = (LinearLayout) findViewById(R.id.main_layout); root.setOnClickListener(new OnClickListener() { public void onClick() { } });