【问题标题】:No Activity found to handle intent (causes FC)未找到处理意图的活动(导致 FC)
【发布时间】:2012-03-26 00:35:12
【问题描述】:

我已经阅读了几乎所有关于堆栈跟踪中“未找到处理意图的活动”错误的帖子,但我一直在努力寻找解决方案。以下是 logcat 的输出:

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>

我的班级名为 Gallery。这就是为什么我用这个名字来称呼它。我确定这很简单。感谢您提供的任何帮助。

【问题讨论】:

  • 创建意图的代码在哪里?

标签: android eclipse android-activity android-logcat


【解决方案1】:

很简单:manifest 文件中的动作名称属性是 GALLERY 全部大写字母

您似乎在您的 java 代码中将操作设置为 com.SenseiMods.Wallpapers.Gallery

所以把Gallery改成GALLERY

【讨论】:

  • 谢谢!这就是问题所在。
  • 关于这个:android.content.ActivityNotFoundException:没有找到处理 Intent { act=android.intent.action.SEND typ=text/plain pkg=com.google.android.apps 的活动。加(有额外)}
猜你喜欢
  • 2011-05-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-12-22
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多