Didn't include a pendingIntent in the extras?

喜欢而已 提交于 2019-12-05 00:18:18

It is probably means that you are missing a uses-library deceleration inside the AndroidManifest.xml file. If you can provide 1 line of the log just before getting this error message it will be helpful. You can try and fix it by adding the:

uses-library android:name="com.<your library>" /

under the

<application

For me I Solved this Error by Giving the right parameter to POST Response in Asynchronous task.

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