Take a look at this article: 
http://mobiforge.com/developing/story/sms-messaging-android

And you can find dozens of articles on how to detect if there is SIM
card or not. This is the first one I found:
http://stackoverflow.com/questions/4933791/android-telephone-manager-to-detect-sim

Combining these should be quite easy. Just thinking aloud: When you
detect that there is no SIM card, write the information to be sent to
permanent storage. Start a timer, which periodically checks if the SIM
state has been restored. Once restored, send the SMS, delete the data
from permanent storage and disable the timer. (Don't know, maybe there
is even a better way of doing this).

-------------------------------------------------
Ali Chousein
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994

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

Reply via email to