This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 134
不能后台截图 #12
Comments
你看下为何回到app主界面,如果我没有主动后台,请手动按下home键。 |
launchmode 改为singleinstance |
@RealMoMo 这个是您目前关于跳转回到app主界面的解决方案?? |
估计题主,和我一样,只用screenshot lib,自己写demo。增加个mainactivity,但没有主动finish。所以,回到后台截图后,因为没有指定launchmode,所有activity在同一个activity栈,而截图activity是透明的,所以截图到主界面。 |
哦哦,我demo里的ScreenShotService.java用的是FLAG_ACTIVITY_NEW_TASK.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
切换到后台延时截图时会直接跳转回到app主界面,截到的不是想要的
The text was updated successfully, but these errors were encountered: