使用百度云推送SDK 报错,求救

knife_s 2015-03-06 07:46:43

PushManager.startWork(getApplicationContext(),
PushConstants.LOGIN_TYPE_API_KEY,
"PIv9kIZzAI.......");


调用这句,程序异常退出,报找不到


03-06 18:59:48.093: E/AndroidRuntime(21876):
java.lang.RuntimeException:
Unable to start receiver com.winzxin.winzxin.baidupush.WinzxinPushMessageReceiver:
android.content.ActivityNotFoundException: No Activity found to handle Intent
{ flg=0x10000000 }


XML文件中已配置

<!-- push应用定义消息receiver声明 广播接收者 -->
<receiver
android:name="com.winzxin.winzxin.baidupush.WinzxinPushMessageReceiver"
>
<intent-filter>
<!-- 接收push消息 -->
<action android:name="com.baidu.android.pushservice.action.MESSAGE" />
<!-- 接收bind,unbind,fetch,delete等反馈消息 -->
<action android:name="com.baidu.android.pushservice.action.RECEIVE" />
<action android:name="com.baidu.android.pushservice.action.notification.CLICK" />
</intent-filter>
</receiver>
...全文
195 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
技术承载梦想 2015-03-10
  • 打赏
  • 举报
回复
你根据Demo里面的配置文件重新配置一下,还有Jar包不要忘记导入,检查这两地方基本没问题了。

80,472

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧