> the issue is that the sms gets sent only once

Why would you want the SMS to be sent automatically more than once? I 
guess, if you need it to be sent more often, you need to actually send it 
again through SMSManager.

 and that too after I restart the phone

Are you saving the newly created SMS to the "native store", through 
utilizing the undocumented ContentProvider? If you do so and save them with 
the type "outbox" or "queued" the stock SMS app will most likely consider 
them to be send (again) when loading up after reboot. So you would want to 
make sure that you flag the messages correctly and take extra care when you 
actually put messages into that database (instead of your own one).


Am Dienstag, 14. August 2012 17:50:45 UTC+2 schrieb Junaid Alam:
>
> Hi,
>
> I have created an application that uses a service and this service sends 
> an SMS using SMS manager, but the issue is that the sms gets sent only once 
> and that too after I restart the phone.
> I am using Sony Ericsson Xperia.
>
> Can anyone please guide me as why the sms gets sent only once. I even 
> tried creating a simple Activity having UI to eneter phone number and 
> message input box and a send button just to test if there is issue with my 
> service. Still it sends sms just once and that too after re-boot.
>
> Thanks in advance
> Junaid
>

-- 
[image: Facebook]<http://www.facebook.com/pages/FINARX-GmbH/159293750854154>
 [image: XING] <http://www.xing.com/companies/finarxgmbh/about>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to