Start activity without showing it

前端 未结 5 542
失恋的感觉
失恋的感觉 2020-12-15 22:16

I have an activity A, which starts activity B and activity B starts activity C. Is there a way not to show activity B. I want this behavour because if there is no content (e

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-15 22:44

    just call startActivity() in onCreate() method of activity B. It will not be shown, but it will be in activity stack.

提交回复
热议问题