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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:10:26+00:00 2026-05-31T08:10:26+00:00

My application will be (optionally) sending social media updates when an action is performed.

  • 0

My application will be (optionally) sending social media updates when an action is performed.

I want to do this by using the user’s installed social media apps. I don’t want to restrict the user to any particular set of apps, so anything that can respond to an ACTION_SEND Intent with a type of text/plain will be fine.

However, I don’t want the user to have to choose every time — typically, they’ll by using the same app every time, i.e. once they’ve picked TweetCaster/Facebook/whatever, they’ll be sticking with it.

If I just startActivity() with ACTION_SEND and text/plain, I get a “Complete action using” chooser up, and there’s also a “Use by default for this action” checkbox.

But, this will set the default for that intent for all applications, and it seems (a) likely that someone might already have defaulted to a non-social-media-app for sending text, and (b) even if they haven’t, it seems a bit “rude” to default such a generic intent as sending some text somewhere.

What do people generally do here? I got halfway through making a ListPreference that allows the choice of a particular application (so I can just fire off the intent at an app that’s preferred for my app, not systemwide), but it seems like a lot of code for something so simple.

Am I missing something more obvious? Is there a way of firing up the chooser such that the “Use by default for this action” will only be used as the default action for my app ACTION_SENDing text/plain?

  • 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-31T08:10:28+00:00Added an answer on May 31, 2026 at 8:10 am

    Is there a way of firing up the chooser such that the “Use by default for this action” will only be used as the default action for my app ACTION_SENDing text/plain?

    No, sorry. That’s one reason why most of the ACTION_SEND samples show using Intent.createChooser(), to eliminate the “make this the default” checkbox and ignore any system-wide default the user may have set.

    Rather than go the ListPreference route, you could create your own chooser AlertDialog (or dialog-themed Activity) with your own “default” logic. That “default” could be:

    • a specific selection, along the lines of the system-wide “make this the default”
    • based on behavior (e.g., divide your list into “Frequently Used” and “Other” options)
    • based on something else (aggregate behavior among all your users, phase of the moon, etc.)

    Creating a “super chooser” that has this sort of functionality is a medium-grade itch of mine that I will likely scratch sometime this year if nobody beats me to it.

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

Sidebar

Related Questions

I am creating a windows application using VB.Net and this application will take a
Using WiX, my install will optionally launch one of my installed program files when
My application will have a per machine (not per user) Startup shortcut. I can
I need to simulate how my application will look when a user is driving
My ASP.NET MVC application will take a lot of bandwidth and storage space. How
Every page on my application will display 1000 records and they are only needed
Basically multiple instances of our application will be launched but they need to have
I am working on web application that will use PHP & MySQL. Application will
I am developing a Client-Server based application in which client application will access server
I'm working on an application for a charitable student organization. The application will track

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.