Redefined onPrepare as boolean and update apk