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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:02:41+00:00 2026-06-05T17:02:41+00:00

I am trying to share plain text while using a Share Action Provider via

  • 0

I am trying to share plain text while using a Share Action Provider via ActionBarSherlock and there are only four options to share it with and no “See all…” option.

Why is that?

This is what it looks like:

and this is what I want it to look like:

  • 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-05T17:02:42+00:00Added an answer on June 5, 2026 at 5:02 pm

    OK so regardless of ActionBarSherlock first test to see if your creating your intent correctly, ABS uses the same code as the generic chooser does so see if the app’s you are looking for show up when you execute this code.

        Intent I= new Intent(Intent.ACTION_SEND);
        I.setType("text/plain");
        I.putExtra(android.content.Intent.EXTRA_TEXT, "My Test Text");
    
        startActivity(Intent.createChooser(I,"Share using ..."));
    

    All of that app’s that handle plain text will show up, if facebook, or whatever you are expecting is not there then those app’s don’t support the ACTION_SEND intent for the type you have registered (plain/text). (Facebook does, but more about that in a minute)

    ABS has a sample for using the share action provider but it try’s to send a photo, not a text message (status update) the setup you should be using is something like this

    @Override
        public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate your menu.
        getSupportMenuInflater().inflate(R.menu.share_action_provider, menu);
    
        // Set file with share history to the provider and set the share intent.
        MenuItem item = menu.findItem(R.id.menu_item_share_action_provider_action_bar);
        ShareActionProvider provider = (ShareActionProvider) item.getActionProvider();
                      provider.setShareHistoryFileName(ShareActionProvider.DEFAULT_SHARE_HISTORY_FILE_NAME);
        // Note that you can set/change the intent any time,
        // say when the user has selected an image.
        provider.setShareIntent(createShareIntent());
    
        return true
    }
    

    And here is the intent that will be used to match app’s and list them out from the sample

    private Intent createShareIntent() {
            Intent shareIntent = new Intent(Intent.ACTION_SEND);
            shareIntent.setType("image/plain");
            Uri uri = Uri.fromFile(getFileStreamPath("shared.png"));
            shareIntent.putExtra(Intent.EXTRA_STREAM, uri);
            shareIntent.putExtra(Intent.EXTRA_TITLE, "This is an android icon");
            return shareIntent;
        }
    

    but you want it to be

    private Intent createShareIntent() {
            Intent I= new Intent(Intent.ACTION_SEND);
            I.setType("text/plain");
            I.putExtra(android.content.Intent.EXTRA_SUBJECT, "TEST - Disregard");
            I.putExtra(android.content.Intent.EXTRA_TEXT, Uri.parse("http://noplace.com"));
        }
    

    This should give you the same list in ABS at it did in the small test stub I showed with the chooser above.

    Now for the bad news. The Facebook app doesn’t really work, it will bring up the users update page, but it won’t fill in the text. This is an on again, off again breakage, but I tried it last night and it was failing. It’s a reported and accepted bug with the facebook app. You can post photo’s though, although the caption can’t be set see How many times will Facebook break/fix this?

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

Sidebar

Related Questions

I'm trying to share some text using an intent: Intent i = new Intent(android.content.Intent.ACTION_SEND);
I'm trying to share links via /me/links, while me is authenticated as a facebook
I am trying to share two different using one shared memory block using the
Im trying to download share data from a stock exchange using python. The problem
I'm trying to write a macro that will generate a plain-text list of files
I'm trying to connect to a network share via powershell. The network share is
I'm trying to share data between various viewControllers, I'm using a property declared in
I'm trying to share some text and an image on Facebook for the currently
Her is what I'm trying to accomplish: When user tries to share some text
I'm trying to share a single httpd.conf file across multiple OS X machines. I'm

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.