send and receive request via sms instead of http

独自空忆成欢 提交于 2020-01-25 18:09:00

问题


in my android application I want to send requests to server via sms if there was no internet connection or network.
I am changing the Volley library code. http request is synchronous, when you send the request, thread waits until the response or error get received from server, but when you send sms, thread continue to work and doesn't wait to get the response sms so I am forced to use Callback functions(listeners).
is there any better approach. is it good idea to use wait and notify to make sms connection synchronous?

来源:https://stackoverflow.com/questions/28000013/send-and-receive-request-via-sms-instead-of-http

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