I am just learning Android, and I am trying to implement a Front Controller.
I am using a Class which extends from BroadCastReceiver as a Front Controller:
public class FrontControllerReceiver extends BroadcastReceiver {}
In this way, every time an Activity needs to start another Activity, or start a Service, or a Service needs to send a response, I send a broadcast. This broadcast is received by the Front Controller and it decides what to do.
What I need to know is whether this is a good programming practice, because I do think is not efficient.
What would be the suggestion to efficiently implement the Front Controller?