Update Activity.java

fixed minor bugs. TODO: As of api 19, will require permision to read from sdcard