今天调试程序的时候突然出现了一个问题,安装上程序后,程序不会自动启动
控制台报错如下:
[2014-02-27 18:01:42 - xxxxxx] No Launcher activity found!
[2014-02-27 18:01:42 - xxxxxx] The launch will only sync the application package on the device!
在网上找了一些资料,都是说没有写这段代码
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
最后找了好久,才找到了问题,在这里记录一下,也希望可以帮助后来者...O(∩_∩)O哈哈~
我在intent-filter里多加了一个action,红色位置,删掉就好了
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.View" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>