android.os.NetworkOnMainThreadException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Editor: media download on UI thread
    via GitHub by maxme
    ,
    • android.os.NetworkOnMainThreadException at android.os.Parcel.readException(Parcel.java:1642) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183) at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:146) at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:692) at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1111) at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:948) at android.content.ContentResolver.openInputStream(ContentResolver.java:668) at org.wordpress.android.util.MediaUtils.downloadExternalMedia(MediaUtils.java:200) at org.wordpress.android.ui.posts.EditPostActivity.addMedia(EditPostActivity.java:1488) at org.wordpress.android.ui.posts.EditPostActivity.fetchMedia(EditPostActivity.java:1412) at org.wordpress.android.ui.posts.EditPostActivity.onActivityResult(EditPostActivity.java:1592) at android.app.Activity.dispatchActivityResult(Activity.java:6490) at android.app.ActivityThread.deliverResults(ActivityThread.java:3794) at android.app.ActivityThread.handleSendResult(ActivityThread.java:3841) at android.app.ActivityThread.access$1400(ActivityThread.java:154) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1440) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:224) at android.app.ActivityThread.main(ActivityThread.java:5526) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    No Bugmate found.