2012-03-26 52 views
2

我幾乎讀過關於堆棧跟蹤中「找不到處理意圖的活動」錯誤的每篇文章,但我一直在尋找解決方案時遇到很大困難。下面是從logcat的輸出:找不到處理意圖的活動(導致FC)

03-26 00:17:54.617: E/AndroidRuntime(803): android.content.ActivityNotFoundException: No  Activity found to handle Intent { act=com.SenseiMods.Wallpapers.Gallery } 

這裏是我的清單文件:

  <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <activity 
     android:name=".Gallery" 
     android:label="@string/app_name" > 
     <intent-filter> 
      <action android:name="com.SenseiMods.Wallpapers.GALLERY" /> 

      <category android:name="android.intent.category.DEFAULT" /> 
     </intent-filter> 
    </activity> 

</application> 

我班被命名爲畫廊。這就是我爲什麼用這個名字來稱呼它的原因。我相信這很簡單。感謝您提供任何幫助。

+0

哪裏是創建意圖的代碼? – Phil 2012-03-26 01:07:44

回答

5

很簡單:在你的manifest文件動作的名稱屬性爲GALLERY全部爲大寫字母

,似乎你將操作設置爲com.SenseiMods.Wallpapers.Gallery在Java代碼中

所以更改GalleryGALLERY

+0

謝謝!這是問題所在。 – user1291949 2012-03-26 02:47:36

+0

以及以下內容:android.content.ActivityNotFoundException:未發現處理Intent的活動{act = android.intent.action.SEND typ = text/plain pkg = com.google.android.apps.plus(has extras)} – Amt87 2013-03-04 12:33:40

相關問題