How can you avoid clock exploits in Android games?
<p>I need to measure a period of time that can last up to a few hours. I'm assuming the normal way to do this would be something like:</p>

<pre><code>Date date = new Date();
...wait some time...
(new Date()).getTime() - date.getTime())
</code></pre>

<p>But could a user change Android's clock back an hour to cheat the game and make the timespan shorter? Would reading time from an online source be the best solution?</p>
