Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8708027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:00:59+00:00 2026-06-13T04:00:59+00:00

When I send an SMS using SmsManager , the result intent broadcasted holds a

  • 0

When I send an SMS using SmsManager, the result intent broadcasted holds a value of 5

Activity.RESULT_OK
SmsManager.RESULT_ERROR_GENERIC_FAILURE
SmsManager.RESULT_ERROR_NO_SERVICE
SmsManager.RESULT_ERROR_NULL_PDU
SmsManager.RESULT_ERROR_RADIO_OFF

What’s meant by every one of them? and please mention a test case that could generate each one.
I know that RESULT_OK denotes a successfully sent SMS. GENERIC_FAILURE occurs for general erros (e.g. I’ve no credit).

But I’ve activated Airplane mode and tried to send an SMS. I’ve thought it would trigger NO_SERVICE error, but a RADIO_OFF was triggered instead. Also the official documentation is not demonstrating them very well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T04:01:01+00:00Added an answer on June 13, 2026 at 4:01 am

    Here’s my comments on the documentation of SmsManager:

    • RESULT_ERROR_GENERIC_FAILURE: Generic failure cause

      Something went wrong and there’s no way to tell what, why or how.

    • RESULT_ERROR_NO_SERVICE: Failed because service is currently unavailable

      Your device simply has no cell reception. You’re probably in the middle of nowhere, somewhere inside, underground, or up in space. Certainly away from any cell phone tower.

    • RESULT_ERROR_NULL_PDU: Failed because no pdu provided

      Something went wrong in the SMS stack, while doing something with a protocol description unit (PDU) (most likely putting it together for transmission).

    • RESULT_ERROR_RADIO_OFF: Failed because radio was explicitly turned off

      You switched your device into airplane mode, which tells your device exactly “turn all radios off” (cell, wifi, Bluetooth, NFC, …).

    In the end, most apps need not care why sending an SMS failed (except ask the user if airplane mode is on in case of RESULT_ERROR_RADIO_OFF), because there’s nothing the app itself can do to remedy it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wan't to create an activity, that will send SMS using an smsmanager, and
I'm using the package android.telephony.SmsManager to send an SMS message from within my application,
I want to send an SMS, but not using the SmsManager class. I want
I am using simple code to send sms: SmsManager.getDefault(). sendTextMessage(phone, null, English characters, sentPI,
I have found the way to send SMS using the Android.Telephony.Gsm.SmsManager class but for
am trying to send SMS using the url but it's not working the result
I want to send SMS using LWUIT. what class should i be looking at?
I am trying to send SMS using a webservice call. But am having errors
I try to send a sms using next code, but recipient gets my message
Is it possible for a mobile browser to send an SMS using the device's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.