Log in screen on first start

前端 未结 4 1113
猫巷女王i
猫巷女王i 2021-01-29 04:15

how would you create an activity that only runs when the application is started for the first time ever and provides the user with a screen to input a pin and \"unlock\" the app

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-29 04:45

    You can always start with something like "splash screen" activity, that will only check in database/ shared preferences if user is logged in. Then you can run login activity or not. Or in first activity you can show popup window with request of login.

提交回复
热议问题