Interception of intent from an external application

Suppose I want to develop an application that will somehow expand (let me say "collaborate") with a very popular application that I obviously do not control. Suppose also for simplicity that a very famous application author will not release an update to block my application.

I studied the functionality of the application and determined that it makes extensive use of BroadcastReceivers. I also know from the manifest, the constants com.famousvendor.intent.INTENT_NAMEthat I could use.

The question is simple: if I create an application, namely org.zighinetto.tinyappwith a broadcast receiver set for the intent com.famousvendor.intent.INTENT_NAME, will the tiny application catch the broadcast? Or can these translations be received only by the process that starts them?

+5
source share
1 answer

will the tiny application catch the broadcast? Or can these translations be received only by the process that starts them?

There are several things that control this.

If the broadcast is protected by permission, you will not be able to receive this broadcast if you do not keep this permission. You may not be able to save this permission depending on the type of permission it has.

, , ( , ). <intent-filter> ( IntentFilter), , , , , , .

(, LocalBroadcastManager), , , ... .

, , .

. , API, , , API. , .

+7

All Articles