if the IF statement is true view new activity
<pre><code>                   if(res.equals("5510"))
                    checkback.setText("Correct version");
               //
                else
                    checkback.setText("Incorrect version, please update. \n Your current version is " + getString(R.string.versioncode)); 
</code></pre>

<p>How do i get it so that if the IF statement is true then it'll start and view mainactivity.class?</p>

<p>I put intent in but when i did it showed up with a bunch of errors</p>
