[android-developers] Re: How to disable back button..?

2010-12-22 Thread Prateek Jain
Hi, If you just want to disable the back button and do nothing, you can try this - @Override public void onBackPressed() { // Your code here, If you wish to write any, else no need. :-) } Thats it !!! Cheers, Prateek On Dec 22, 5:06 pm, Abhilash baddam

[android-developers] Re: How to disable back button..?

2010-12-22 Thread Streets Of Boston
Note that this will work only for phones running 2.0 and up. For phones running 1.6 and lower, you need to handle the key-down and key-up of the back-key. On Dec 22, 2:37 pm, Prateek Jain mrprateekj...@gmail.com wrote: Hi, If you just want to disable the back button and do nothing, you can

Re: [android-developers] Re: How to disable back button..?

2010-12-22 Thread Abhilash baddam
okay thanks for all of your suggestions ...everything is working is fine. On Thu, Dec 23, 2010 at 4:17 AM, Streets Of Boston flyingdutc...@gmail.comwrote: Note that this will work only for phones running 2.0 and up. For phones running 1.6 and lower, you need to handle the key-down and key-up