01-02-2009 05:56 AM
i developed application which send as well as receive sms.but how to test receeving of sms in application.when i go for receive sms it get freez whole application
01-02-2009 08:18 AM
You should be able to send an SMS to your own phone and successfully receive it.
Nobody here can hep you with "my app freezes up" without seeing some source code.
What method are you using to listen for SMS?
01-02-2009 09:00 AM
01-02-2009 10:11 AM - edited 01-02-2009 10:12 AM
MessageConnection.receive() is a blocking call. The calling thread will block until an SMS message is available.
You have two choices:
(1) implement MessageListener so that you are only performing the receive() when a message is ready to be read
(2) Start a "receive" thread that blocks on the call.
I assume you have carefully read the attached KB article? This shows samples of the various methods to read the SMS messages.
01-06-2009 03:52 PM