Is onResume() called before onActivityResult()?

前端 未结 4 1808
粉色の甜心
粉色の甜心 2020-12-13 01:25

Here is how my app is laid out:

  1. onResume() user is prompted to login
  2. If user logs in, he can continue using the app 3. If the user logs out at
4条回答
  •  北荒
    北荒 (楼主)
    2020-12-13 02:02

    You may want to consider abstracting away the login state from the activity. For example if a user can post comments, let the onPost action ping for login state and go from there, instead of from the activity state.

提交回复
热议问题