Android. Secondary preferred app

64 views Asked by At

I'm trying to implement something like man-in-the-middle app that will launch specific actions on some broadcasts, activity starts and then launch the secondary default app to do the rest of things.

For example:

  1. Facebook (click on web link) -> MyApp (add notification "starting web page") -> Chrome/Firefox
  2. Incoming sms -> MyApp (set sound reminder every 2mins) -> Hangouts/other sms app

I know I can use broadcast receivers, but as I have discovered most of apps abort the broadcasts within and those do not propagate.

I want to set the MyApp as a default app and within it set the secondary preferred app to achieve my goal. The problem starts with how to send broadcast only to the secondary app like Hangouts as there might be more than one sms app in the system.

0

There are 0 answers