我創建的顯示的Hello World和一個按鈕標有TEST,當我按下這個按鈕的吐司將顯示一條消息,我跑在模擬器上這個程序很簡單的活動。沒有發射活動發現錯誤
的問題是,當我嘗試運行此應用程序控制臺顯示的是
no launcher activity found
,並沒有到模擬器雖然代碼有沒有錯誤可言顯示。
的manifest.xml:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.qr00"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".QR00"
android:label="@string/title_activity_qr00" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="QR00" />
</activity>
</application>
誰能告訴我如何解決 「無發射活動找到」 錯誤?
我應該在哪裏添加這些行?活動標籤之前還是之前? – LetsamrIt
查看編輯答案。 – nhaarman
我會嘗試一下 – LetsamrIt