I am trying to register a class that extends BroadcastReceiver as a receiver in Android manifest. I have no trouble registering them but the problem occurs because of the class does not have an empty constructor.
is there a way around this?
No. Android has no idea how to invoke any other constructor, or what values to pass to that constructor.
this class is also a singleton class
That is not possible. Android will create a new instance of your manifest-registered
BroadcastReceiver for every broadcast that it receives.
but there has to be a simpler method right?
Yes: do not make the
BroadcastReceiver a singleton. Make some other class be the singleton, that the