sendBroadcast() - Should it be called inside Activity? I am trying to call sendBroadcast() from my method of utility-class which doesn\'t extend Activity. I am getting compi
If you extend Application object (main entry that is being called before the your first Activity) then you can keep a shared singletone for your application.
You should pass the context from activity class to utility class to access the specific application resources like startActivity, sendBroadcast, etc.
context.sendBroadcast(intent);