I have a broadcast receiver and I am trying to show a toast message from it, is this possible ? This code doesn\'t show the toast but it print the log message in the logcat.
Use this
Toast.makeText(context, "this is not shown",Toast.LENGTH_LONG).show();