I completely agree with TreKing. But sometimes bending the 'rules' (disallowing the user to go back when (s)he wants to) is permissible but you'd better have a very good reason :-)
"... AlertDialog is being dismissed in reasonable amount of time ..." Reasonable means a few seconds, certainly no more than that. On May 13, 11:52 am, TreKing <[email protected]> wrote: > On Thu, May 13, 2010 at 9:15 AM, dillipk <[email protected]> wrote: > > If some the same activity is waiting for some response from server or some > > data updation is going on and then press BACK, I want to wait on the same > > screen till the current task is completely processed and then move out to > > the previous activity. > > On top of what SOB said, this is a bad idea - don't block the user from > doing anything, especially if it's going to take a long time. If I press > back while you're doing some long-running operation (presumably with a > progress dialog running) I expect that operation to cancel out - not to sit > there trying to finish what it started. If you ignore that and make me wait > or hit the Home screen to exit your ongoing process, you can be fairly > certain your app will not be installed for long... > > ------------------------------------------------------------------------------------------------- > TreKing - Chicago transit tracking app for Android-powered > deviceshttp://sites.google.com/site/rezmobileapps/treking > > -- > 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 > athttp://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

