我得到了Launcher标签,但我的应用程序仍然没有在eclipse编译时启动,有什么问题?
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.myproject.test"
android:versionCode="1"
android:versionName="1.0" >
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCES_LOCATION_EXTRA_COMMANDS"/>
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"/>
<uses-permission android:name="android.permission.CONTROL_LOCATION_UPDATES"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<service android:name=".CurrentMoodService">
</service>
<receiver android:name=".CurrentMoodWidgetProvider">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<category android:name="android.intent.category.DEFAULT"></category>
<category android:name="android.intent.category.ALTERNATIVE"></category>
</intent-filter>
<intent-filter>
<action android:name="com.myproject.test.widget.CurrentMoodService.MOODY" />
</intent-filter>
<meta-data android:name="android.appwidget.provider"
android:resource="@xml/widgetproviderinfo" />
</receiver>
<activity
android:name="com.myproject.test.MainTabActivity"
android:label="@string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.myproject.test.activities.Home"></activity>
<activity android:name="com.myproject.test.activities.Check"></activity>
<activity android:name="com.myproject.test.activities.Map"></activity>
<activity android:name="com.myproject.test.activities.Contact"></activity>
<activity android:name="com.myproject.test.activities.More"></activity>
<activity android:name="com.myproject.test.activities.About"></activity>
</application>
答案 0 :(得分:6)
在你的清单中,你写了第二行
package="com.priject.test"
此处的包名称为 com.myproject.test
<activity
android:name="com.myproject.test.MainTabActivity"
android:label="@string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
确保您指定了正确的包名:)