title: how to detect the period for which a button is press in android
body: <p>Is there any way i can detect for how long a button is press?? I want to capture the time for which a button is press and act accordingly. So if a user kept pressing the button for 5 sec i want to detect that 5 sec on android.</p>
  
  <p>Please let me know</p>
  
  <p>Thanks 
  Pranay</p>