PhoneGap Lab: Update Activity class