Hey!
My programm has some code that takes a screenshot and mails it to the user, unfortunately this process is taking a while and I would like to indicate to the user that the app has not crashed with a simple small animation that is running in the meantime.
I tried adding a canvas with an image that rotates every frame, but when doing the screenshot/mail operation frames are not called regularly so the animation is not really playing :I
Could anyone hint me in the right direction on how to go about this? Would async operations help? Or can I somehow run the screenshot/mail code in a background task so the animation still gets regular frame updates?
Greetings