Provide support for visibilitychange event on Android