Update Activity.java

Update for cm11