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

  • Home
  • SEARCH
  • 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 6936369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:13:30+00:00 2026-05-27T12:13:30+00:00

I am attempting to create a simple app that can send a text message

  • 0

I am attempting to create a simple app that can send a text message from my android cell phone to another cell phone, but at the moment I am using the emulators. The problem I am getting is that the app keeps getting stopped unexpectedly.

I looked at my logCat and I notice I get this line

12-13 23:36:49.611: ERROR/AndroidRuntime(29001): java.lang.SecurityException: Sending SMS message: User 10131 does not have android.permission.SEND_SMS.

But this confuses me because in my AndroidManifest.xml I have this code

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="net.learn2develop.SMSMessaging"
      android:versionCode="1"
      android:versionName="1.0">


    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".SMS"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>


        </activity>

     <uses-permission android:name="android.permission.SEND_SMS"></uses-permission>
    <uses-permission android:name="android.permission.RECEIVE_SMS"></uses-permission>   

    </application>
</manifest>

I did a single step as well and I crash at this line

sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI);

with the arguments as follows

  • phoneNumber: My Cell phone’s number as a string in the format “XXXXXXXXXX”

  • null: null

  • message: “testing”

  • sentPI = PendingIntent.getBroadcast(this, 0,
    new Intent(SENT), 0);

  • PendingIntent deliveredPI = PendingIntent.getBroadcast(this, 0,
    new Intent(DELIVERED), 0);

With SENT being

String SENT = “SMS_SENT”;

and DELIVERED being

String DELIVERED = “SMS_DELIVERED”;

I have no idea what to do now. I have googled and I didn’t see anyone else with my problem.

Any help is appreciated!
Thanks,
Chris

  • 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-05-27T12:13:31+00:00Added an answer on May 27, 2026 at 12:13 pm

    The <uses-permission ...> tags need to be under the <manifest> tag, not the <application> tag.

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

Sidebar

Related Questions

I am attempting to build a simple method that creates an XML file from
I'm attempting to create a custom calendar control that inherits from ASP.Net's built in
I'm attempting to create a web app that works with business data models, pretty
I'm attempting to create a simple web application for some personal development, but I've
I'm attempting to create a simple example that would just alert the first 5
I am attempting to create my 1st Simple DLL. I have a class(that's a
I'm trying to create an Android client for a client/server app that has previously
I am attempting to create a simple web app for iPad which needs to
I am attempting to create and host a simple RESTful WCF Service. The service
I am attempting to create a small application to collect data received from an

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.