Update Activity.java

This fix issue #33