Moved getCurrentActivity to android-common.js