See the Android documentation for a description with the lifecycle activities. As a rule, you'll be wanting to make use of the onStop event rather than the onPause or onUserLeaveHint events. Update your OpenAPI spec security schemas. it's a securitySchemes section and a single plan of variety apiKey. For example: https://fionap749abb6.loginblogin.com/profile