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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:18:38+00:00 2026-05-11T12:18:38+00:00

My app needs to have a intent-filter that responds to a Intent that has

  • 0

My app needs to have a intent-filter that responds to a Intent that has it’s component set (a explicit intent.) Here is a example.

Intent i = new Intent(); i.setClassName('com.compareeverywhere','com.compareeverywhere.ScanActivity'); startActivity(i); 

Just a simple intent-filter will not do – because the Intent is made for a specific component (Activity,) it just launches that without looking for intents at all. Is there a way to do this?
Thanks, Isaac Waller
P.S: Please don’t reply ‘No.’

  • 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. 2026-05-11T12:18:39+00:00Added an answer on May 11, 2026 at 12:18 pm

    No.

    🙂 That being said, imagine what would happen if Android allowed people to hijack Intents for specific components. Don’t like a competitor’s app? Just have yours hijack his main Activity with your own to display porn. Intents can specify specific components specifically because the authors don’t want others to be able to replace them.

    You have two options. If this is your own code, replace it with a generic intent, or if it belongs to someone else, contact them, and ask nicely for them to change it to a generic intent along with some good reasons why that is necessary.

    • 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 needs to open a new window (in the same
I have an app that needs to handle very large strings between a SQL
I have an app that needs to check a database table every minute. The
I have a console app that needs to display the state of items, but
I have a graphical app that needs to test the resolution of the display
So I have a small C# app that needs to periodically check the contents
I'm a newbie to swing development. I have a swing app that needs to
I have a web app for commercial property management that needs spreadsheet-like functionality for
I have an app that, while running, needs to poll its own memory usage.
I'm writing a simple real-estate listing app in Django. Each property needs to have

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.