how to set themes continuously in android
<p>My problem is make a function to set up themes in my application every <code>00:00 AM</code> if there are new themes. As I know, to do this problem we must use a loop. </p>

<p>Here is my code:</p>

<pre><code>private void updateThemes() {
    Thread time = new Thread() {
        public void run() {
            int time = 0;
            while(time &gt; 86400000) {
                //invoke method or start new activity
            }
        }
    };
}
</code></pre>

<p>Please help me - Thanks.</p>
