Thanks guy, that's what I did. While the async task is running i display a
progress bar which disapear when finished and display a success/error
message.

In case someone is interested, I also used transaction on the SQL lite
database to avoid any inconsistency.

Kim

On Wed, Aug 11, 2010 at 8:09 AM, raju bhusani <raju.bhus...@gmail.com>wrote:

> 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. <kdame...@gmail.com> 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 android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
>> 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to