Android Override Explicit Intent

My application should have an intent-filter that responds to an Intent that has a component (explicit intent). Here is an example.

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

Just a simple intent-filter will not do it, because Intent created for a specific component ( Activity ), it just starts it without thinking about intentions at all. Is there any way to do this?
Thanks, Isaac Waller
PS: Please do not answer "No".

+4
source share
1 answer

No.

:) Be that as it may, imagine what happens if Android allows people to capture intentions for certain components. Don't like the competition app? You just have to hijack your main activity with your own in order to show porn. Skills may indicate specific components specifically because authors do not want others to replace them.

You have two options. If this is your own code, replace it with a common intention, or if it belongs to someone else, contact them and ask them to change it to a general intention, as well as some good reasons why this is necessary.

+14
source

All Articles