tags:

views:

57

answers:

2

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
sir,can u plzz provide the full code if possible...
can any body provide me the full code................
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