1. Are you ready for the Galaxy S20? Here is everything we know so far!

Clock Activity for Android app

Discussion in 'Android Apps & Games' started by Edon Freiner, Jun 18, 2017.

  1. Edon Freiner

    Edon Freiner Lurker
    Thread Starter

    This might be a crazy question. I'm making an app that uses the sunrise and sunset of every day.

    I wanted to make the visuals of the app similar to that of the Solar watch face on the Apple Watch.

    The back ground would change color based on the position of the sun.

    So far I got all the pixels of the png file that is not white. Pretty much the picture.

    My next step is to take all of those pixels divide it by the seconds in the day and move it that many pixels 1 second per day.

    How would I go about taking the array of pixels and dynamically dividing it?

    There are 86,400 seconds in a day, so making that many arrays I would assume be ridiculous. Any other ideas of what to do?

    Thank you so much!

    Here are some pictures to get you an idea of what I am talking about.

    Attached Files:

    1. Download the Forums for Android™ app!




Clock Forum


Last Updated

Share This Page