Android Toggle button
<p>I am a beginner to Android development and am trying to make an application whose requirement is to display random number in a text box, and continue to display the random numbers with one second or any programmable delay, till the time the toggle button is in 'ON' state. Does anyone have suggestion on it, or if possible sharing a partial source code would be good.</p>

<p>Another suggestion that I would require is regarding any good book to start off with android development with its internal details also. If there is any sort of book on android as that we have for other development languages (ex. Complete Reference to Java, Complete Reference to C, C++ etc)</p>

<p>Thanks in advance</p>
