use*_*949 2 eclipse android android-logcat android-activity
我已经阅读了几乎所有关于堆栈跟踪中"未找到处理意图的活动"错误的帖子,但我一直在努力寻找解决方案.这是logcat的输出:
03-26 00:17:54.617: E/AndroidRuntime(803): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.SenseiMods.Wallpapers.Gallery }
Run Code Online (Sandbox Code Playgroud)
这是我的清单文件:
<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>
Run Code Online (Sandbox Code Playgroud)
我的班级被命名为画廊.这就是我用这个名字打电话的原因.我确信这很简单.感谢您提供任何帮助.
这很简单:在你的动作的名称属性manifest的文件是GALLERY全部大写字母
似乎你com.SenseiMods.Wallpapers.Gallery在java代码中设置了动作
所以Gallery改为GALLERY
| 归档时间: |
|
| 查看次数: |
4799 次 |
| 最近记录: |