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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:37:35+00:00 2026-06-17T11:37:35+00:00

So I have an app that has a button where when you click it

  • 0

So I have an app that has a button where when you click it the sms app opens and a body populates which you can then send to whoever. I am using:

Intent shareIntent = new Intent(Intent.ACTION_VIEW);
shareIntent.putExtra("sms_body", getResources().getString(R.string.sharingSMS));
shareIntent.setType("vnd.android-dir/mms-sms");
startActivity(shareIntent);

This works on almost all phones I have tried it on but on the Motorola Razr (Which annoys me since I have had many problems with their code being different) the sms body is blank. Now, when I use:

shareIntent.putExtra(Intent.EXTRA_TEXT, getResources().getString(R.string.sharingSMS));

instead of sms_body it works fine but doesn’t work with any other phones. After searching around for issues on this I found that since sms_body is not part of the android OS specifically it doesn’t have to work with all phones. When I search around for how to send an sms also everything says to do it the first way I do it with sms_body.
Another thing I tried was to add both extras, then it worked on all the phones I tested it on but other people have gotten a crash with the following:
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW typ=vnd.android-dir/mms-sms (has extras) }

By searching for things what I found seems like this error occurs because I have both extras attached and it tries to find things to do with both and can’t find the second when it already uses one, but I’m not sure about that. In the end what I am trying to do is find something that will work with all phones or a way to use both extras without the crash. I have been looking around for a while and have found similar questions on multiple places but none of them have been answered, so any help would be great.

  • 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-17T11:37:36+00:00Added an answer on June 17, 2026 at 11:37 am

    After playing with it I found that you can just use things for different phones. I used this code to find out what phone it is:

    String manuModel = Build.MANUFACTURER + " " + Build.MODEL;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have an app that has a few checkboxes in the settings and then
Good day. I have an app that has one main activity which holds 3
I have a web app that has a few processes that can take up
I have an app that has a list of menu items. When you click
I have an iphone app that has a root view with a button that
Have an app that has listings - think classified ads - and each listing
I have an app that has different names for different languages. How do I
I have an app that has a centre view with two views off to
I have an app that has a tabbar at the bottom. When I select
I have an app that has a TableView, NavigationView and TabBar running together. There

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.