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

加载插件超慢 #263

Open
ouyangzn opened this issue Aug 25, 2016 · 4 comments
Open

加载插件超慢 #263

ouyangzn opened this issue Aug 25, 2016 · 4 comments

Comments

@ouyangzn
Copy link

刚试了一下,安装插件有点慢,且会导致主线程阻塞,目前还没试过子线程能不能安装。安装完后,启动插件几分钟了没反应,不知道是不是挂了,没敢动。

@ouyangzn
Copy link
Author

刚刚点了一下加载中框外面,框消失了,然后再次启动插件,很快打开,但是插件中的toast失效了

@ouyangzn
Copy link
Author

对了,toast是自己写的,用WindowManager.addView做的,
windowManagerParams.type = WindowManager.LayoutParams.TYPE_TOAST;
windowManagerParams.height = WindowManager.LayoutParams.WRAP_CONTENT; windowManagerParams.width = WindowManager.LayoutParams.WRAP_CONTENT; windowManagerParams.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; windowManagerParams.format = PixelFormat.TRANSLUCENT;
设置了这些参数

@ouyangzn
Copy link
Author

上面的问题解决了,有个新问题
intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(intent);
这种方式启动不了activity

@tiann
Copy link
Contributor

tiann commented Oct 11, 2016

说明什么系统,什么ROM,咋样的情况会出现;最好补上日志,这样别人才能帮助你。不然鬼知道是个什么情况。

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