android.os.NetworkOnMainThreadException

GitHub | maxme | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Editor: media download on UI thread

    GitHub | 6 months ago | maxme
    android.os.NetworkOnMainThreadException
  2. 0

    NetworkOnMainThreadException during import

    GitHub | 1 year ago | Valodim
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=94211, result=-1, data=Intent { dat=content://com.microsoft.skydrive.content.StorageAccessProvider/document/content://com.microsoft.skydrive.content.metadata/property/pub-sec.asc flg=0x1 }} to activity {org.sufficientlysecure.keychain/org.sufficientlysecure.keychain.ui.ImportKeysActivity}: android.os.NetworkOnMainThreadException

    Root Cause Analysis

    1. android.os.NetworkOnMainThreadException

      No message provided

      at android.os.Parcel.readException()
    2. Android Platform
      ContentResolver.openInputStream
      1. android.os.Parcel.readException(Parcel.java:1642)
      2. android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
      3. android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:146)
      4. android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:692)
      5. android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1111)
      6. android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:948)
      7. android.content.ContentResolver.openInputStream(ContentResolver.java:668)
      7 frames
    3. org.wordpress.android
      EditPostActivity.onActivityResult
      1. org.wordpress.android.util.MediaUtils.downloadExternalMedia(MediaUtils.java:200)
      2. org.wordpress.android.ui.posts.EditPostActivity.addMedia(EditPostActivity.java:1488)
      3. org.wordpress.android.ui.posts.EditPostActivity.fetchMedia(EditPostActivity.java:1412)
      4. org.wordpress.android.ui.posts.EditPostActivity.onActivityResult(EditPostActivity.java:1592)
      4 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Activity.dispatchActivityResult(Activity.java:6490)
      2. android.app.ActivityThread.deliverResults(ActivityThread.java:3794)
      3. android.app.ActivityThread.handleSendResult(ActivityThread.java:3841)
      4. android.app.ActivityThread.access$1400(ActivityThread.java:154)
      5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1440)
      6. android.os.Handler.dispatchMessage(Handler.java:102)
      7. android.os.Looper.loop(Looper.java:224)
      8. android.app.ActivityThread.main(ActivityThread.java:5526)
      8 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames