Skip to content

Most visited

Recently visited



public class ReceiverCallNotAllowedException
extends AndroidRuntimeException

   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ android.util.AndroidRuntimeException
           ↳ android.content.ReceiverCallNotAllowedException

This exception is thrown from registerReceiver(BroadcastReceiver, IntentFilter) and bindService(Intent, ServiceConnection, int) when these methods are being used from an BroadcastReceiver component. In this case, the component will no longer be active upon returning from receiving the Intent, so it is not valid to use asynchronous APIs.


Public constructors

ReceiverCallNotAllowedException(String msg)

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors


added in API level 1
ReceiverCallNotAllowedException (String msg)

msg String
This site uses cookies to store your preferences for site-specific language and display options.


This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.