现象描述:运行eclipse时在Console中会出现如下几句提醒:
No Launcher activity found!
The launch will only sync the application package on the device!
并且模拟器正常运行可是没有自己项目的图标
解决方法:
在项目目录里找到AndroidManifest.xml文件
在
<</span>application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
</</span>application>
中添加几行代码,添加后如下
<</span>application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<</span>activity
android:name="com.example.mynotebook.AddNote"
android:label="@string/app_name" >
<</span>intent-filter>
<</span>action android:name="android.intent.action.MAIN" />
<</span>category android:name="android.intent.category.LAUNCHER" />
</</span>intent-filter>
</</span>activity>
</</span>application>