Conditionally set first activity in Android

后端 未结 4 1463
北荒
北荒 2020-12-31 02:23

Currently we have a splash screen that is displayed in our app. However, if there is no data to be gathered or processed that is waiting, we\'d like to go straight into our

4条回答
  •  無奈伤痛
    2020-12-31 03:06

    afaik you can only have 1 main activity.

    What I did when I had this issue is always start the main activity (not splash), and in its onCreate() method I would start the splash screen if needed.

提交回复
热议问题