Alert Dialogs have a few methods to achieve this.

setCancellable ... Check them out.

Thanks and Regards,
Kumar Bibek
http://tech-droid.blogspot.com

On Jun 17, 10:34 am, beneesh baby <[email protected]> wrote:
> Hi,
>
>     How to disable the back button when the alert box  is on the
> screen ....
>
> I used onKeyDown function in the activity.....but when back button
> button is clicked it first cancels the dialog box and goes to our
> activity...I want both either both activity and dialog box closed when
> clicking the back button or disable the back button when the dialog
> box is shown...
>
> can any one suggest any solutions for this....
>
> Thanks in advance,
>
> Beneesh

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to