if(res.equals("5510"))
checkback.setText("Correct version");
//
else
checkback.setText("Incorrect version, please update. \n Your current version is " + getString(R.string.versioncode));
How do i get it so that if the IF statement is true then it’ll start and view mainactivity.class?
I put intent in but when i did it showed up with a bunch of errors
Try this, but replace “CurrentActivity.this” with the name of the activity your calling it from.
If you still get errors then post the errors you get – it makes it a million times easier to work out where the issue is!