making a progress dialog stop when clicking on back activity in android
<p>I am developing an android application in which i have 3 edittexts and a button.I have implemented progress dialog on button click.I want to stop a dialog on pressing back button,But that progress dialog is not dismissing,,,,I have tried dismissing,finishing dialog,,but of no use</p>

<p>I have tried setcancellable false,,,,its not working</p>

<p>Code is </p>

<p><a href="http://pastie.org/4251606" rel="nofollow">http://pastie.org/4251606</a></p>

<p>can anyone suggest me,,,</p>

<p>Thanks in advance
TUshar  </p>
