问题
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