title: How detect user touch interaction in android?
body: <p>In my activity there are <code>ActionBar,ListView,ContextMenu,Menu</code>.</p>
  
  <p>I wanted to capture the user interaction with my activity(means when ever user touch in my activity i wanted to show a toast).I use this</p>
  
  <pre><code>@Override
      public void onUserInteraction() 
      {
  
              Toast.makeText(this, "Hello",Toast.LENGTH_LONG).show();
      }
  </code></pre>
  
  <p>This method working with in screen but problem with this method its not working with </p>
  
  <p><code>Menus,ContextMenu(ListView)</code>.</p>
  
  <p><strong>Working Scenario</strong>:-
  1-This is working first time when i touch the screen Every where in activity (ActionBar,ListView).</p>
  
  <p>2-After clicking the <code>Menus</code> first time this method is calling and if the <code>Menu</code> is related to activity (if i want to go on next activity ) it is working fine but there is a <code>Menu</code> <code>REFRESH</code> in same activity ,i do not know why this method not calling on clicking on <code>REFRESH</code>.</p>
  
  <p>3- The same problem with <code>ContextMenu</code> (comes after long press on <code>ListView</code>)</p>
  
  <p>I tried <code>GestureDetecter</code> also.</p>
  
  <p><strong>There is any particular method or anything in android ,which can detect the user touch every time in menus,contextmenu,list,screen or every where.</strong></p>
  
  <p>Lots of Thanks</p>