Update MyActivity.java

Please Review the code for me.