No Activity found to handle intent (causes FC)

喜夏-厌秋 提交于 2019-12-24 00:06:53

问题


I have read nearly every single post about the "activity not found to handle intent" error in the stacktrace, but I have been struggling greatly with finding a solution. Here is the output from the logcat:

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

Here is my manifest file:

            <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>

My class is named Gallery. Which is why I called it by that name. I'm sure it's something simple. Thank you for any help you can give.


回答1:


it is simple : the action name attribute in your manifest file is GALLERY all capital letters

and it seems that you set the action to com.SenseiMods.Wallpapers.Gallery in your java code

so change Gallery to GALLERY



来源:https://stackoverflow.com/questions/9865301/no-activity-found-to-handle-intent-causes-fc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!