(platform_android.c) Refactor direct manipulation of lifecycle state