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 7959869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:38:25+00:00 2026-06-04T04:38:25+00:00

I finally got my app to be able to send text messages (SMS), but

  • 0

I finally got my app to be able to send text messages (SMS), but the problem now is that i need the messages to show up in the inbox if the user opens the sms app.

Is there any way to add text messages to the inbox?

I’m currently using the following code, could i alter it somehow to make it show up in the inbox?

private void sendSMS(String phoneNumber, String message)
{
    PendingIntent pi = PendingIntent.getActivity(ccc, 0, new Intent(), 0);
    SmsManager sms = SmsManager.getDefault();
    sms.sendTextMessage(phoneNumber, null, message, pi, null);
} 
  • 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-04T04:38:26+00:00Added an answer on June 4, 2026 at 4:38 am

    This link has an example of how to do it.

    This function in the code does it, the complete example uses a service to accomplish the task:

    private void addMessageToSent(String telNumber, String messageBody) {
        ContentValues sentSms = new ContentValues();
        sentSms.put(TELEPHON_NUMBER_FIELD_NAME, telNumber);
        sentSms.put(MESSAGE_BODY_FIELD_NAME, messageBody);
    
        ContentResolver contentResolver = getContentResolver();
        contentResolver.insert(SENT_MSGS_CONTET_PROVIDER, sentSms);
    }
    

    Hope this helps!

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

Sidebar

Related Questions

I've finally got push notifications working from UrbanAirship. But now I have a problem,
Well, now that I've finally got my stupid ODBC stuff configured, I took a
I had an app that I finally got finalized and am ready to post
I finally got validation working with MVVM in my Silverlight app. Now I'm wondering
I've finally got my Rails Todo List app to display the Todos using Backbone's
I finally got my jQTouch/iPod web app embedding a video . Thanks to Ryan
I've got an app that caches a pretty decent amount of data in memory
Finally, thanks to most of you, I got my first app approved by Apple.
I finally got an open id demo app going: rails 2.3.5 authlogic openid When
I've got an iPhone app that I'm working on that uses Push Notifications. In

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.