java.lang.NullPointerException showing at mBoundService.setAlarm(c);

孤街醉人 提交于 2019-12-02 03:56:11

Looks like the service was not bound successfully. The connection doesn't return immediately, but since you call this in an event handler this is most likely not the issue. Did you register the service correctly? Try to put some debug statements/breakpoints in the onServiceConnected() method to verify it is actually called/when it is called.

Nilesh Sawardekar

I was also facing same problem.. I had called it in onCreate method for some reason..but when I called it from other events then its works fine.. I know, I am late but this can be a solution that can help others

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