[android-developers] Re: how to display alert message when some one clicks on back button

2009-03-11 Thread Tommaso
Mark, that works for Alerts if you have only ONE activity in your app. For example purpose it is great. For real life it is misguiding. I couldn't find a solution yet. How do you show AlertDialog from a subactivity!? Ciao, Tommaso On 27 Jan., 15:00, Mark Murphy mmur...@commonsware.com

[android-developers] Re: how to display alert message when some one clicks on back button

2009-01-27 Thread Mark Murphy
manoj wrote: Hi friends, I want to display an alert asking do you want to exit from the application yes/no? before exiting the application (when we click the Back button). Can any one please help me how to achieve this? Probably you will want to use AlertDialog, perhaps created using

[android-developers] Re: how to display alert message when some one clicks on back button

2009-01-27 Thread manoj
can you please show me the sample code? On Jan 27, 6:12 pm, Mark Murphy mmur...@commonsware.com wrote: manoj wrote: Hi friends, I want to display an alert asking do you want to exit from the application yes/no? before exiting the application (when we click the Back button). Can any

[android-developers] Re: how to display alert message when some one clicks on back button

2009-01-27 Thread Mark Murphy
manoj wrote: can you please show me the sample code? ApiDemos/src/com/example/android/apis/app/AlertDialogSamples.java in your SDK's samples/ directory uses AlertDialog.Builder. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0