不包括在额外一个的PendingIntent? [英] Didn't include a pendingIntent in the extras?
问题描述
我碰到这个错误消息传来logcat的上一个应用程序工作时。谁能告诉我这是什么意思?
I came across this Error message on Logcat while working on an app. Can anyone tell me what it means?
07-24 23:34:20.288 1140-1140/? E/NetworkScheduler.SchedulerReceiver﹕ Invalid parameter app
07-24 23:34:20.288 1140-1140/? E/NetworkScheduler.SchedulerReceiver﹕ Invalid package name : Perhaps you didn't include a PendingIntent in the extras
为了您的信息:我用了一个AlarmManager在此应用程序
For your information: I used an AlarmManager in this app
推荐答案
有关我,我被给予正确的参数 POST异步任务
响应解决了这个错误。
For me I Solved this Error by Giving the right parameter to POST
Response in Asynchronous task.
正如我们在logcat中看到 E / NetworkScheduler.SchedulerReceiver:无效的参数应用
。这错误表明我们不会被添加合适的参数 POST
响应。
As we see in logcat E/NetworkScheduler.SchedulerReceiver﹕ Invalid parameter app
.This error shows that we are not added the right parameter to POST
response.
previously我已经添加了参数是这样的:
Previously I had added the parameter like this:
entity.addPart("latitude", new StringBody("23.234234"));
entity.addPart("longtitude", new StringBody("22.234324"));
entity.addPart("note", new StringBody("20"));
entity.addPart("parking_title", new StringBody("Drop"));
entity.addPart("filename[0]", new StringBody("199"));
entity.addPart("filename[1]", new StringBody("10"));
entity.addPart("filename[2]", new ByteArrayBody(data,"image/jpeg", params[1]));
然后我变成了这样:
Then I changed into this:
entity.addPart("latitude", new StringBody(lat_str));
entity.addPart("longtitude", new StringBody(long_str));
entity.addPart("note", new StringBody(note_str));
entity.addPart("parking_title", new StringBody(parking_titleStr));
entity.addPart("filename[0]", new ByteArrayBody(data,"image/jpeg", params[1]));
这篇关于不包括在额外一个的PendingIntent?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!