Added in API level 1

ReceiverCallNotAllowedException


public class ReceiverCallNotAllowedException
extends AndroidRuntimeException

java.lang.Object
   ↳ java.lang.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

ReceiverCallNotAllowedException(String msg)

Inherited methods

Public constructors

ReceiverCallNotAllowedException

Added in API level 1
public ReceiverCallNotAllowedException (String msg)

Parameters
msg String