i am assigned a project in which i have i have to use send sms from android sdk automatically. can anybody help me in this concern..
+1
A:
Refer this code, This may help u..
//Import this Header Files
import android.telephony.TelephonyManager;
import android.telephony.gsm.SmsManager;
// call this send sms function when clicking a Button..
private void sendSMS(String phoneNumber, String message)
{
Log.v("phoneNumber",phoneNumber);
Log.v("MEssage",message);
PendingIntent pi = PendingIntent.getActivity(this, 0,
new Intent(this, SendSMS.class), 0);
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNumber, null, message, pi, null);
}
Tilsan The Fighter
2010-10-22 10:07:38
sir,can u plzz provide the full code if possible...
2010-10-25 07:18:59
can any body provide me the full code................
2010-10-26 07:06:28
A:
You should be able to find something here: http://www.google.de/search?q=android+send+sms
http://mobiforge.com/developing/story/sms-messaging-android is my first hit and provides a lot of information.
Sotapanna
2010-10-22 11:14:34