app - android关于Intent的一个问题
黄舟
黄舟 2017-04-17 14:33:17
0
2
573

当我在AndroidManifest.xml写了2个这个

再配上这个

真机调试就会报错

百度会告诉你不停去clean吧 ,然而并没有什么卵用。还是靠我机智的'精盐'
正确的方式当然是去掉AndroidManifest.xml中去掉一个图1

然后我发现在真机调试的时候关了wifi就不会有错误能够运行,就是手机桌面会出现2个app的图标

哪位大神来 关照下我,tell me why!为什么关了wifi能够正常运行

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
黄舟

In the configuration file, add a few of these configuration nodes, and several icons will be generated after installation. If the two are exactly the same, it may cause errors.

android.intent.action.MAIN
android.intent.catalog.LAUNCHER

In addition, if you are doing the jump Activity operation in a newly opened thread, you can try to perform the jump in the UI thread. This has nothing to do with turning on and off WIFI, but it may happen when you turn it on or off. .

左手右手慢动作
android.intent.action.MAIN
android.intent.catalog.LAUNCHER

This is the program entrance. Why do you configure two?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template