Fixed layout and added Instrumentation in Manifest

Correction to get the Activity running. When running your test MainActivityAfterTest.java I get errors.
It seems you Project is not complete. Could you update so everything runs?