java - how to use the queue-messaging family of methods in smslib? -


i dont know how implement queue messaging in smslib, receive new sms , store in database table, make logic , produce new sms, archieve -synchronous way, dont know how in asynchronous way?? can guide me or maybe hint, see docs dont know how make queue since receving , sending sms???, need run app , want every user gets answer, example use method service.getinstance().queuemessage(msg); did same service.getinstance.sendmessage(), question how use queue in smslib??

can guide me on this??

the sendmessage() , queuemessage() methods both send messages through modem, there fundamental difference; sendmessage() synchronously , queuemessage() asynchronously (as said yourself).

this means sendmessage() forward message modem, block until message sent, , return. if using queuemessage() method, store message in queue , send "when can", without blocking modem.

to send status message (if sent or not, errors etc) need make class implements ioutboundmessagenotification interface. there, in process method, status message , can handle according own implementation.

you set service "listen" these notifications using service.getinstance().setoutboundmessagenotification(outboundmessagenotification);. same applies if want listen incoming messages using iinboundmessagenotification.

hope helped

-rob


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -