The annexed .aia contains the "core" of an analog clock whose hands are simple rotating sprites on a canvas. It is not intended to be an app working on every phone. The layout is fixed to landscape, the overall dimensions are set to monitor and the clock area is set to 500x500. Nevertheless it works and my aim has been to show how sprites (and their rotating headings) can be used to create analog gauges.
The mechanism is based on the sensors-clock that fires every 200 ms. Whenever a new second is detected the seconds head is updated. Every 60 seconds the minutes head is rotated too, and the hours head is moved a bit forward to avoid "jumps" between hours (30 steps between hours and 0.5 step every minute).
The seconds head is red while minutes and hours heads are black, but they are the same .png whose dimensions and colours heve been modified accordingly.
"AM" or "PM" is also shown on the clock.
That's all folks !
Credits: @Taifun for his Taifun_Tools extension that allows the app to stay awake.
Dear @Asri_Rusdi,
I've seen that you've already applied Tim's version that fits perfectly a vertical layout for phones.
As I told in my first post, my first aim was only to show how rotating sprites can be used to simulate an analog gauge (asked my by another user).
Please consider Tim's and Anke's modifications as an integration of my original app.
All the best !
Thanks for your clarification and update.
Understood that you want to share to user's question and others how rotating sprites can be used to simulate an analog gauge.
Appreciated to your sharing.