Instead of asking the user if they'd like to quit, I'd simply save the data and then restore it, but maybe that's just me.
For lightweight things like this you can persist them in a SharedPreferences. This sort of depends on your use case, but I think you've confused people, because you're not really "quitting" the app (as is typical of people asking this question), you're merely clearing the form. (That being said, I think the proper thing to do UI wise is to persist the information unless the user comes back to it.) Kris On Wed, Nov 28, 2012 at 6:30 PM, Subodh Nijsure <[email protected]>wrote: > I had no idea I would spark such a discussion. > > Only reason I was considering adding 'are you sure you want to exit' > button was > > Some of my screens have 5-8 items that users enter stuff like name, > address, some other data. I just don't want users to enter say 80% of data > and loose that data just because they hit back button one two many times.. > Is there another UI pattern one should follow in that case? > > [ Something like what gmail does regarding auto-saving your draft > messages, but do that in android app.. ] > > -Subodh > > > > On Wed, Nov 28, 2012 at 10:09 AM, Kristopher Micinski < > [email protected]> wrote: > >> To add, the "exit" button also has the effect of turning off GPS updates, >> so "exiting" also has a feature that implies something else: that you quit >> draining the user's battery. >> >> >> On Wed, Nov 28, 2012 at 12:38 PM, Latimerius <[email protected]>wrote: >> >>> On Wed, Nov 28, 2012 at 6:24 PM, TreKing <[email protected]> wrote: >>> > On Wed, Nov 28, 2012 at 11:18 AM, TreKing <[email protected]> >>> wrote: >>> >> >>> >> On Wed, Nov 28, 2012 at 11:02 AM, Latimerius <[email protected]> >>> wrote: >>> >>> >>> >>> Yeah, well, it's probably not by Google, or one that Google had any >>> >>> say in. None of the built-in apps on my devices have an exit button, >>> >>> not even games (that in general do include it AFAICT). >>> >> >>> >> >>> >> Google Maps Navigation has "Exit Navigation" as an option in the menu >>> (at >>> >> least on my device running 2.3.4). >>> > >>> > >>> > Oh, and in reference to the original point of this thread, if you press >>> > back, it asks you "Exit Navigation? This will end all route guidance". >>> If >>> > this check wasn't there, and you exited the app accidentally, you >>> would have >>> > to re-enter the app and re-input your route guidance parameters and >>> restart >>> > the process, which would be a pain in the ass if you're in the middle >>> of >>> > driving. So seems like there are some valid use cases for such >>> validation. >>> >>> Interesting, thanks for pointing this out. I'm guessing something >>> about Navigation must be somehow expensive or slow so they had to put >>> that check in. Or otherwise, was the crusade against exit buttons I >>> remember seeing all over the net back in 2009/2010 misguided? >>> >>> -- >>> 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 >>> >> >> -- >> 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 >> > > -- > 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 > -- 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

