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

后端 未结 5 829
时光说笑
时光说笑 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:18

    i like dweebsonduty's method. a similar way to do this is to save their configuration information in files on the SD card. your app could start out by checking for those files and loading the information. if the load is successful, it moves on to the next activity, if not it starts the appropriate activity to prompt the user for input.

    I have done this same thing, but instead of swiching activities i just switch views until i have all the info i need, and then move on.

提交回复
热议问题