Can I have an android activity run only on the first time an application is opened?

后端 未结 5 803
时光说笑
时光说笑 2020-12-08 05:17

OK, so I\'m playing around with an android app.

The 90% use case is that users want to go straight to the primary list screen to find what they\'re looking for. Tha

5条回答
  •  [愿得一人]
    2020-12-08 06:19

    How will you be storing the configuration?

    If it is in SQLlite you could just create a table called firstuse and put a field in there called hasbeenused and make it null. Then when the app is used you can put a 1 in there. Then you can read it each time your app loads and if that field = 1 then go to your next activity.

提交回复
热议问题