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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:47:14+00:00 2026-06-12T08:47:14+00:00

I can create a chooser with following code: Intent share = new Intent(Intent.ACTION_SEND); share.setType(text/plain);

  • 0

I can create a chooser with following code:

Intent share = new Intent(Intent.ACTION_SEND);
                share.setType("text/plain");
                share.putExtra(Intent.EXTRA_TEXT, "hello");
                startActivity(Intent.createChooser(share, "my title"));

I want to send (suppose) this “hello” but I want to specify what should appear in activity that starts with this call startActivity(Intent.createChooser(share, "my title")); , its showing all the apps which are installed in my phone. Can’t I limit it to few applications only?

  • 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-12T08:47:16+00:00Added an answer on June 12, 2026 at 8:47 am

    When you do this, all the apps that can receive your intent are shown to the user, so he can select the one he prefers to perform the specified action. No, you cannot limit this to only a few applications.

    You can call a certain app directly, however, if you know it’s activity name. In this case, ignore the chooser and create your own dialog box with a list view with the names of the apps that you want. When a user selects one of these, then fire an intent to only that specific app.

    Make sure you check if the user has the app in the first place though. You can do this by querying the package manager for all the broadcast receivers that receive a certain type of broadcast (ex:text broadcasts). You can do this using:

    public abstract List queryBroadcastReceivers (Intent intent, int flags)

    Developer docs for this are here:
    https://developer.android.com/reference/android/content/pm/PackageManager.html#queryBroadcastReceivers%28android.content.Intent,%20int%29

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

Sidebar

Related Questions

Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/html"); intent.putExtra(Intent.EXTRA_EMAIL, "emailaddress@emailaddress.com"); intent.putExtra(Intent.EXTRA_SUBJECT, "Subject"); intent.putExtra(Intent.EXTRA_TEXT, "I'm email body.");
I'm trying to create an input text through the following code so it can
I am using the following code to share information from my application. Intent sendIntent
I am using the following code to record audio: Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
How can create a New user in ORACLE with full access (alter, delete, select,
I have the following code: FileOutputStream out = null; try { out = new
In various Android applications, I use the following code to show an application chooser
I am new to Android development. I am trying to use the following code
I need to create a Word template where I can choose from different paragraphs
I want to create a Settings-Widget, where I can choose a Date. Because it

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.