---
title: "Describe the SmsManager class in android."  
description: "Describe the SmsManager class in android."  
author: "Anonymous User"  
published: 2015-05-29  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/2592/describe-the-smsmanager-class-in-android  
category: "android"  
tags: ["android"]  
reading_time: 2 minutes  

---

# Describe the SmsManager class in android.

SmsManager class is responsible for sending SMS from one emulator to another or device.

You cannot directly instantiate this class; instead, you call the getDefault() static method to obtain an SmsManager object. You then send the SMS message using the sendTextMessage() method:

```
SmsManager sms = SmsManager.getDefault();sms.sendTextMessage("5556", null, "Hello from MindStick", null, null);
```

**sendTextMessage() method takes five argument.**

- **destinationAddress —** Phone number of the recipient.
- **scAddress —** Service center address; you can use null also.
- **text —** Content of the SMS message that you want to send.
- **sentIntent —** Pending intent to invoke when the message is sent.
- **deliveryIntent —** Pending intent to invoke when the message has been delivered.

## Answers

### Answer by Anonymous User

SmsManager class is responsible for sending SMS from one emulator to another or device.

You cannot directly instantiate this class; instead, you call the getDefault() static method to obtain an SmsManager object. You then send the SMS message using the sendTextMessage() method:

```
SmsManager sms = SmsManager.getDefault();sms.sendTextMessage("5556", null, "Hello from MindStick", null, null);
```

**sendTextMessage() method takes five argument.**

- **destinationAddress —** Phone number of the recipient.
- **scAddress —** Service center address; you can use null also.
- **text —** Content of the SMS message that you want to send.
- **sentIntent —** Pending intent to invoke when the message is sent.
- **deliveryIntent —** Pending intent to invoke when the message has been delivered.


---

Original Source: https://www.mindstick.com/interview/2592/describe-the-smsmanager-class-in-android

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
