Android.Content.ReceiverCallNotAllowedException Class
This exception is thrown from Context.RegisterReceiver(BroadcastReceiver, Android.Content.IntentFilter) and Context.BindService(Intent, Android.Content.IServiceConnection, Android.Content.IServiceConnection) when these methods are being used from an Android.Content.BroadcastReceiver component.

See Also: ReceiverCallNotAllowedException Members

Syntax

[Android.Runtime.Register("android/content/ReceiverCallNotAllowedException", DoNotGenerateAcw=true)]
public class ReceiverCallNotAllowedException : Android.Util.AndroidRuntimeException

Remarks

This exception is thrown from Context.RegisterReceiver(BroadcastReceiver, Android.Content.IntentFilter) and Context.BindService(Intent, Android.Content.IServiceConnection, Android.Content.IServiceConnection) when these methods are being used from an Android.Content.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.

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1