What code you will write to send the SMS to another AVD? Suppose that the AVD no is 5556

What code you will write to send the SMS to another AVD? Suppose that the AVD no is 5556



A) SmsManager sms=new SmsManager();

sms.sendTextMessage("5556", null, "Hello Android", null, null);


B) SmsManager sms=new SmsManager();

sendSMS("5556", null, "Hello Android", null, null);


C) SmsManager sms=SmsManager.getDefault();

sms.sendTextMessage("5556", null, "Hello Android", null, null);


D) None of the above.




Answer: C


Learn More :