When doing the Asy Task on InBackground method you can do the restore
process and put the user in wait by showing progress dialog in PreExecute
and dissmis it in post..........!

On Tue, Aug 10, 2010 at 1:30 AM, Kim D. <[email protected]> wrote:

> Hi all,
>
> I know this is not how an async task should behave but my question is
> how to "block" the user while executing it.
>
> My need is the following:
> I have my own backup/restore process and I have an async task to run
> these two actions.
> The backup is fine, I can warn the user when the backup is done and
> that's just fine!
> But my problem is about the restore process. When the user click on
> restore he shouldn't be able to make any change in the application
> (and anyway don't want to because he would lose all his changes).
> I understand that having the user blocked while restoring (or maybe
> with a progress bar) is not a best pratice but I do not see any other
> possibility in this context.
>
> I need your advices about it.
>
> Thanks in advance,
>
> Regards,
> Kim
>
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Thanks & Regards
B.NagaRaju
Software Engineer
9966990732
WWW.arijasoft.com

-- 
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

Reply via email to