Lockscreen is displayed between activities

前端 未结 1 2137
滥情空心
滥情空心 2021-02-19 21:13

I work on a kiosk app which can launch other android apps. It runs on top of the lockscreen. The issue I am seeing is that the lockscreen is displayed briefly between activities

相关标签:
1条回答
  • 2021-02-19 21:28

    How can I launch the other activity without it briefly showing the lockscreen first?

    An easier way of achieving this would be to have a dummy (plain-view) activity running before you launch activity-1. This way, when you do finish activity-1, dummy-activity will take over, followed by activity-2 coming into the foreground.

    You will (most likely) also need to tell the system not to provide window animations. Do so by adding this to your application theme:

    <item name="android:windowAnimationStyle">@null</item>
    
    0 讨论(0)
提交回复
热议问题