OnTouchListener on Activity never calls
<p>I used this code, but when i click on activity at runtime, it never hits in OnTouch() method. Can someone guide me what i am doing wrong? Should i need to setcontentview of this activity? Actually i want the coordinates of activity where user touch during execution.</p>

<pre><code>public class TouchTestAppActivity extends Activity implements OnTouchListener 
{ 

    @Override
 public void onCreate(Bundle savedInstanceState) 
       { 
       super.onCreate(savedInstanceState); 
       //setContentView(R.layout.touch); 
       } 

    @Override
 public boolean onTouch(View arg0, MotionEvent arg1) 
       { 
        // TODO Auto-generated method stub 
        String test = "hello";  
       } 
} 
</code></pre>
