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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:24:52+00:00 2026-05-19T11:24:52+00:00

I asked a question previously about what shows up in the IntentChooser when I

  • 0

I asked a question previously about what shows up in the IntentChooser when I send an Intent with ACTION_SEND and MIME type “image/png”. The problem is that some phones come with a default messaging app that is not showing up in the list, mine included (myTouch 4G) as well as a user that I speak with over email (using an HTC EVO). If I choose a Send or Share option from the built in gallery app or another application on the same image I’m saving and attempting to send directly from my app, Messages shows up in the list. From my app it does not. Other phones don’t have this problem, so it’s clearly a platform specific thing. But that doesn’t mean I should just ignore the problem.

So, I go to troubleshooting the issue. I register one of the activities in my app to receive the the same type of intent, and then hit a breakpoint to analyze the Intent object being sent from the two different ways of sending it.

The problem is, the intent I’m sending and the intent being sent from Gallery or AndroZip (where Messages does show up in the chooser) seem to be the same. They both have the same action, same categories, same flags, same mime type. What else can I inspect on the Intent from Gallery or AndroZip to tell if there’s some more information I can add to my Intent to get the default messaging app to show up in the chooser in cases where it is not?

  • 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-19T11:24:53+00:00Added an answer on May 19, 2026 at 11:24 am

    The problem is specific to HTC Sense phones, and it arises because their Gallery and Messaging apps are different to the stock ones.

    Specifically the Intent sent from Gallery to Messaging has the action android.intent.action.SEND_MSG which is different to android.intent.action.SEND. The Sense messaging app doesn’t handle SEND, unlike the stock messaging app.

    So the question becomes, how is the Sense Gallery app creating an activity chooser dialog which combines both SEND and SEND_MSG ?

    I’ve done some research and got mostway there… the code below works, but the “Messages” entry in the dialog appears at the top rather than in alphabetical order as per Gallery. Doubtless some more research into intents would correct that, but at least this works:

        // Create a chooser for things that can ACTION_SEND images
        Intent intent = new Intent(Intent.ACTION_SEND);
        Uri data = Uri.parse("content://media/external/images/media/98");
        intent.putExtra(Intent.EXTRA_STREAM, data);
        intent.setType("image/jpeg");
        Intent chooser = Intent.createChooser(intent, "Blah");
    
        // Add the stupid HTC-Sense-specific secondary intent
        Intent htcIntent = new Intent("android.intent.action.SEND_MSG");
        htcIntent.putExtra(Intent.EXTRA_STREAM, data);
        htcIntent.setType("image/jpeg");  
        chooser.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Intent[] { htcIntent });
    
        // Show the chooser
        startActivity(chooser);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I asked a similar question about this previously, but I did not specify that
I've previously asked a question about designing a service that receives video files, sends
I previously asked a question about chaining conditions in Linq To Entities. Now I
I asked a question about this previously but my database structure has changed, and
I previously asked a question on stack overflow about how to format my date
I asked a question about C-type sizes which I get a pretty good answer
I asked a question about interfaces previously and got some excellent responses. I'm really
I've previously asked a question of about Delegates does anyone have a must have
This question is about the same program I previously asked about . To recap,
I'm deleting a previously asked question and asking again more succinctly now that I

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.