Using OnPause and OnResume in an application
<p>I am making an application in which i want to let the control go to some activity and then to come back. When I have searched about that problem, I came to know that this problem could be solved by using <code>OnPause()</code> and <code>OnResume()</code>, but I don't know how to use them.</p>

<p>This is the code where I am transferring the control to some other activity. Please tell me how to use <code>OnPause()</code> and <code>OnResume()</code> in this regard.Thanks in advance.</p>

<pre><code>Intent intent = new Intent(MCQ.this,ConfigActivity.class);
            int ClassIndex = 2;
            intent.putExtra("ClassIndex", ClassIndex);
            startActivity(intent);
</code></pre>
