Update Activity.java

This fix issue #33
Merge pull request #34 from vitorveras/patch-1

Update Activity.java