On 12 August 2010 15:12, pramod.deore <deore.pramo...@gmail.com> wrote:

>             But when user change the screen orientation then I am
> facing problem. When user changes screen orientation then progress bar
> get disappears and user never come to know that his data is uploaded
> or downloaded successfully or not?

Once orientation is changed your activity gets killed and restarted so
if you are doing data transfer in the same thread it will probably
be interrupted. I'd suggest to spawn separate task for that + and
communicate back to main thread with handler when upload is done.

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