Thursday, May 13, 2010

[android-developers] Re: Blocking current Activity/Screen till current task is complete

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 <treking...@gmail.com> wrote:
> On Thu, May 13, 2010 at 9:15 AM, dillipk <codersnet2...@gmail.com> 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment