How to make infinite loop in an Activity
<p>When somebody is doing some game they can do it like this: <code>mainActivity</code> which extends <code>Activity</code> and in this main activity there is a method e.g: </p>

<pre><code>setContentView(BouncingBallView);
</code></pre>

<p><code>BouncingBallView</code> extends <code>View</code> and there we have got methods: <code>onDraw()</code> <code>invalidate()</code> and these methods are use to do update and they are performing in all frames. </p>

<p>My problem is I would like to have some method like "onDraw-invalidate" which are update but in class <code>Activity</code> not in <code>View</code>.</p>

<p>I would like to know if there are some main loop, methods which are perform all the time some <code>update()</code>? I know that in <code>Activity</code> there is: <code>onCreate()</code>; <code>onStart()</code>; <code>onRestart()</code>; <code>onResume()</code>; <code>onPause()</code>; <code>onStop()</code>; and <code>onDestroy()</code>, but I can't see update? How would I do this?</p>
