Bump version code to 4 (0.4).
Fix onResume crash.