Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mainactivity设置成singleTask,点击系统浮窗1中open后,调用 moveTaskToBack(true)把当前的activity隐藏,然后点击打开首页,可以回到mainactivity,但是我点mainactivity中先open,然后点击home键,点击打开首页,没法回到main,但是调试的话执行了startactivity,请问这是什么原因? #31

Closed
zhoufeng1213 opened this issue Nov 11, 2019 · 2 comments

Comments

@zhoufeng1213
Copy link

No description provided.

@zhoufeng1213 zhoufeng1213 changed the title 点击系统浮窗1中open后,mainactivity设置成singleTask,调用 moveTaskToBack(true)把当前的activity隐藏,然后点击打开首页,可以回到mainactivity,但是我点mainactivity中先open,然后点击home键,点击打开首页,没法回到main,但是调试的话执行了startactivity,请问这是什么原因? mainactivity设置成singleTask,点击系统浮窗1中open后,调用 moveTaskToBack(true)把当前的activity隐藏,然后点击打开首页,可以回到mainactivity,但是我点mainactivity中先open,然后点击home键,点击打开首页,没法回到main,但是调试的话执行了startactivity,请问这是什么原因? Nov 11, 2019
@zhoufeng1213
Copy link
Author

解决了,用PendingIntent

@RaymanMartin
Copy link

解决了,用PendingIntent

怎么说?我也遇到类似这样的问题。浮窗回到launcher的时候,点击后是startActivity了,但是跳转失效了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants