Networkonmainthread exception while executing httprequest in a bound service from another service via aidl

余生长醉 提交于 2019-12-23 18:32:09

问题


I have a service which binds another service via aidl.The bound service executes a httprequest and returns a response when the method is invoked from callign service via aidl. I am getting Networkonmainthread exception while doing this.

Usage of Asynctask failed here for webservice query.Any help is appreciated :)

来源:https://stackoverflow.com/questions/6622101/networkonmainthread-exception-while-executing-httprequest-in-a-bound-service-fro

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