1. Explore
  2. »
  3. Android
  4. »
  5. android.os

android.os errorsAndroid

Top patterns

  1. Tried to access to a resource without permission

    Request the required permission, before you start to use the resource:

    https://developer.android.com/training/permissions/requesting

  2. Executed network call on the main thread

    You must execute network calls on a background thread and not on the main thread.

    Read more: https://developer.android.com/training/articles/perf-anr

  3. Communication between threads is handled incorrectly
    No solution
Error patternsClassesMethodsExceptions
DescriptionException TypeEntry MethodWeb pages

Tried to access to a resource without permission

java.lang.SecurityException
android.os.Parcel.readException
1349Web pages
1Solution
SecurityExceptionParcel.readException()1349

Executed network call on the main thread

android.os.NetworkOnMainThreadException
android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork
1070Web pages
1Solution
NetworkOnMainThreadExceptionStrictMode$AndroidBlockGuardPolicy.onNetwork()1070

Communication between threads is handled incorrectly

java.lang.RuntimeException
android.os.Handler.<init>
387Web pages
RuntimeExceptionHandler.<init>()387

Handler.<init>() has thrown a RuntimeException

java.lang.RuntimeException
1 frames hidden
android.os.Handler.<init>
260Web pages
RuntimeExceptionHandler.<init>()260

Handler.enqueueMessage() has thrown an IllegalStateException

java.lang.IllegalStateException
1 frames hidden
android.os.Handler.enqueueMessage
160Web pages
IllegalStateExceptionHandler.enqueueMessage()160

Handler.sendMessageAtTime() has thrown an IllegalStateException

java.lang.IllegalStateException
2 frames hidden
android.os.Handler.sendMessageAtTime
155Web pages
IllegalStateExceptionHandler.sendMessageAtTime()155

BinderProxy.sendDeathNotice() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
3 frames hidden
android.os.BinderProxy.sendDeathNotice
150Web pages
IllegalArgumentExceptionBinderProxy.sendDeathNotice()150

Handler.sendMessageDelayed() has thrown an IllegalStateException

java.lang.IllegalStateException
3 frames hidden
android.os.Handler.sendMessageDelayed
149Web pages
IllegalStateExceptionHandler.sendMessageDelayed()149

If your targetSdkVersion is 24 or higher, you can not use file: Uri values in Intents

android.os.FileUriExposedException
android.os.StrictMode.onFileUriExposed
140Web pages
FileUriExposedExceptionStrictMode.onFileUriExposed()140

Parcel.readException() has thrown an IllegalStateException

java.lang.IllegalStateException
android.os.Parcel.readException
116Web pages
IllegalStateExceptionParcel.readException()116

You must do fileSystem operations on a separate thread

android.os.StrictMode$StrictModeDiskReadViolation
android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk
106Web pages
StrictMode$StrictModeDiskReadViolationStrictMode$AndroidBlockGuardPolicy.onReadFromDisk()106

Binder.execTransact() has thrown a NullPointerException

java.lang.NullPointerException
2 frames hidden
android.os.Binder.execTransact
88Web pages
NullPointerExceptionBinder.execTransact()88

Parcel.readException() has thrown an IllegalStateException

java.lang.IllegalStateException
1 frames hidden
android.os.Parcel.readException
85Web pages
IllegalStateExceptionParcel.readException()85

BinderProxy.transact() has thrown a SecurityException

java.lang.SecurityException
android.os.BinderProxy.transact
84Web pages
SecurityExceptionBinderProxy.transact()84

ServiceManager.addService() has thrown a SecurityException

java.lang.SecurityException
2 frames hidden
android.os.ServiceManager.addService
83Web pages
SecurityExceptionServiceManager.addService()83

AsyncTask.finish() has thrown a NullPointerException

java.lang.NullPointerException
4 frames hidden
android.os.AsyncTask.finish
82Web pages
NullPointerExceptionAsyncTask.finish()82

HandlerThread.run() has thrown a NullPointerException

java.lang.NullPointerException
6 frames hidden
android.os.HandlerThread.run
81Web pages
NullPointerExceptionHandlerThread.run()81

MessageQueue.enqueueMessage() has thrown a RuntimeException

java.lang.RuntimeException
android.os.MessageQueue.enqueueMessage
78Web pages
RuntimeExceptionMessageQueue.enqueueMessage()78

BinderProxy.transact() has thrown a TransactionTooLargeException

android.os.TransactionTooLargeException
android.os.BinderProxy.transact
76Web pages
TransactionTooLargeExceptionBinderProxy.transact()76

Parcel.readValue() has thrown a RuntimeException

java.lang.RuntimeException
android.os.Parcel.readValue
74Web pages
RuntimeExceptionParcel.readValue()74

Handler.handleCallback() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
5 frames hidden
android.os.Handler.handleCallback
65Web pages
IllegalArgumentExceptionHandler.handleCallback()65

Parcel.writeValue() has thrown a RuntimeException

java.lang.RuntimeException
android.os.Parcel.writeValue
60Web pages
RuntimeExceptionParcel.writeValue()60

Handler.post() has thrown an IllegalStateException

java.lang.IllegalStateException
4 frames hidden
android.os.Handler.post
58Web pages
IllegalStateExceptionHandler.post()58

Binder.execTransact() has thrown a SecurityException

java.lang.SecurityException
5 frames hidden
android.os.Binder.execTransact
56Web pages
SecurityExceptionBinder.execTransact()56

Handler.sendMessage() has thrown an IllegalStateException

java.lang.IllegalStateException
4 frames hidden
android.os.Handler.sendMessage
55Web pages
1Solution
IllegalStateExceptionHandler.sendMessage()55

AsyncTask.executeOnExecutor() has thrown a RejectedExecutionException

java.util.concurrent.RejectedExecutionException
3 frames hidden
android.os.AsyncTask.executeOnExecutor
47Web pages
RejectedExecutionExceptionAsyncTask.executeOnExecutor()47

Binder.execTransact() has thrown a SecurityException

java.lang.SecurityException
4 frames hidden
android.os.Binder.execTransact
46Web pages
SecurityExceptionBinder.execTransact()46

Parcel.readParcelable() has thrown a BadParcelableException

android.os.BadParcelableException
1 frames hidden
android.os.Parcel.readParcelable
45Web pages
BadParcelableExceptionParcel.readParcelable()45

HandlerThread.run() has thrown a SnapshotException

org.eclipse.mat.SnapshotException
10 frames hidden
android.os.HandlerThread.run
44Web pages
SnapshotExceptionHandlerThread.run()44

AsyncTask.finish() has thrown an ArrayIndexOutOfBoundsException

java.lang.ArrayIndexOutOfBoundsException
14 frames hidden
android.os.AsyncTask.finish
42Web pages
ArrayIndexOutOfBoundsExceptionAsyncTask.finish()42

Handler.handleCallback() has thrown an IllegalStateException

java.lang.IllegalStateException
3 frames hidden
android.os.Handler.handleCallback
41Web pages
IllegalStateExceptionHandler.handleCallback()41

Handler.dispatchMessage() has thrown a RuntimeException

java.lang.RuntimeException
4 frames hidden
android.os.Handler.dispatchMessage
41Web pages
RuntimeExceptionHandler.dispatchMessage()41

AsyncTask.executeOnExecutor() has thrown an IllegalStateException

java.lang.IllegalStateException
android.os.AsyncTask.executeOnExecutor
41Web pages
IllegalStateExceptionAsyncTask.executeOnExecutor()41

Parcel.readParcelable() has thrown a BadParcelableException

android.os.BadParcelableException
android.os.Parcel.readParcelable
40Web pages
BadParcelableExceptionParcel.readParcelable()40

Parcel.writeList() has thrown a RuntimeException

java.lang.RuntimeException
1 frames hidden
android.os.Parcel.writeList
40Web pages
RuntimeExceptionParcel.writeList()40

Handler.sendMessageDelayed() has thrown a RuntimeException

java.lang.RuntimeException
2 frames hidden
android.os.Handler.sendMessageDelayed
39Web pages
RuntimeExceptionHandler.sendMessageDelayed()39

Handler.dispatchMessage() has thrown an IllegalStateException

java.lang.IllegalStateException
4 frames hidden
android.os.Handler.dispatchMessage
39Web pages
IllegalStateExceptionHandler.dispatchMessage()39

AsyncTask.execute() has thrown an IllegalStateException

java.lang.IllegalStateException
1 frames hidden
android.os.AsyncTask.execute
38Web pages
IllegalStateExceptionAsyncTask.execute()38

Looper.loop() has thrown an IllegalStateException

java.lang.IllegalStateException
5 frames hidden
android.os.Looper.loop
36Web pages
IllegalStateExceptionLooper.loop()36

HandlerThread.run() has thrown a ServiceConnectionLeaked

android.app.ServiceConnectionLeaked
16 frames hidden
android.os.HandlerThread.run
35Web pages
ServiceConnectionLeakedHandlerThread.run()35

Parcel.writeValue() has thrown a RuntimeException

java.lang.RuntimeException
2 frames hidden
android.os.Parcel.writeValue
34Web pages
RuntimeExceptionParcel.writeValue()34

Handler.sendEmptyMessage() has thrown an IllegalStateException

java.lang.IllegalStateException
5 frames hidden
android.os.Handler.sendEmptyMessage
34Web pages
IllegalStateExceptionHandler.sendEmptyMessage()34

StrictMode.setClassInstanceLimit() has thrown a StrictMode$InstanceCountViolation

android.os.StrictMode$InstanceCountViolation
android.os.StrictMode.setClassInstanceLimit
33Web pages
StrictMode$InstanceCountViolationStrictMode.setClassInstanceLimit()33

Binder.execTransact() has thrown a SecurityException

java.lang.SecurityException
5 frames hidden
android.os.Binder.execTransact
33Web pages
SecurityExceptionBinder.execTransact()33

ParcelFileDescriptor.<init>() has thrown a Throwable

java.lang.Throwable
1 frames hidden
android.os.ParcelFileDescriptor.<init>
33Web pages
ThrowableParcelFileDescriptor.<init>()33

Handler.sendMessageDelayed() has thrown a RuntimeException

java.lang.RuntimeException
3 frames hidden
android.os.Handler.sendMessageDelayed
33Web pages
RuntimeExceptionHandler.sendMessageDelayed()33

Parcel.readValue() has thrown a BadParcelableException

android.os.BadParcelableException
2 frames hidden
android.os.Parcel.readValue
32Web pages
BadParcelableExceptionParcel.readValue()32

Bundle.getString() has thrown a ClassCastException

java.lang.ClassCastException
android.os.Bundle.getString
32Web pages
ClassCastExceptionBundle.getString()32

Parcel.writeSerializable() has thrown a NotSerializableException

java.io.NotSerializableException
11 frames hidden
android.os.Parcel.writeSerializable
31Web pages
NotSerializableExceptionParcel.writeSerializable()31

Parcel.openFileDescriptor() has thrown a FileNotFoundException

java.io.FileNotFoundException
android.os.Parcel.openFileDescriptor
31Web pages
FileNotFoundExceptionParcel.openFileDescriptor()31
Nothing to list here.
Nothing to list here.
Nothing to list here.