in my app i need to be able to send a text message in a background, without users intervention. I am using SmsManager (code below) to accomplish that. It does send a message but the popup asking me to choose a delivery method still shows up (even after the message is sent). I do have Google Voice installed thus the popup. Is there a way for me to avoid displaying this popup while sending text message? Perhaps i shall use a different method?
Thanks!
SmsManager sm = SmsManager.getDefault();
sm.sendTextMessage(number, null, message, null, null);
Update: so just to see what will happen i selected a default delivery method being “text message” and check the box saying use this as default. Now when i send the message using the code above it sends it in the background but it also bring up the empty form to send a message to 😐 How do i get rid of this? 🙂
restored the device and problem was gone, so must’ve been a third party app causing the send new message form, its all good now, sms is being send in a background. thanks for your help all…