Exit the loop, remembering your index. Arrange to restart it at the
appropriate time -- an Alarm, or a message posted by whatever code you
were waiting to be done.

You don't ever want to actually pause or sleep in the main thread.
Your entire App will appear to freeze.

On Feb 25, 12:33 am, CMF <[email protected]> wrote:
> I have a loop which draw a bitmap
> for(int i=0;i<10;i++){
>     //here I draw a bitmap which will move to right a little bit in
> each loop
>     //I want a pause here so that an animation can be made
>
>
>
> }

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