fixed android manifest, activity main restored, and main activity got rid of onResume and onPause