Marty Ballard wrote:
> Wajiha Kanwal wrote:
>
> Can anybody tell me how can i disable BACK button on android?
> > Here is how I've done it in one of my apps:
> >
> > @Override
> > public void onBackPressed() {
> > Toast.makeText(this, "Back button disabled, press Reset",
> Toast.LENGTH_LONG).show();
> > }
>
This evades the question of whether you should disable the back button.
To which the answer pretty much always is "No".
Assuming you don't want to piss off your users.
--
Lew
--
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