Google is committed to advancing racial equity for Black communities. See how.
Added in API level 1

ReceiverCallNotAllowedException

open class ReceiverCallNotAllowedException : AndroidRuntimeException
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ java.lang.RuntimeException
   ↳ android.util.AndroidRuntimeException
   ↳ android.content.ReceiverCallNotAllowedException

This exception is thrown from Context#registerReceiver and Context#bindService 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.

Summary

Public constructors

<init>(msg: String!)

Public constructors

<init>

Added in API level 1
ReceiverCallNotAllowedException(msg: String!)