java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=328091, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/video:4082 flg=0x1 }} to activity {my.app/my.app.activity.RootActivity}: java.lang.IllegalStateException


Samebug tips1

Try loading the text file into a WebView, then printing the contents of the WebView.


,
via Stack Overflow by CommonsWare

Solutions on the web1243

Solution icon of github
Failure delivering result ResultInfo{who=null, request=328091, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/video:4082 flg=0x1 }} to activity {my.app/my.app.activity.RootActivity}: java.lang.IllegalStateException

Solution icon of stackoverflow
Failure delivering result ResultInfo{who=android:fragment:0, request=1, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:51 flg=0x1 }} to activity {com.example/com.scanlibrary.ScanActivity}: java.lang.NullPointerException: uriString

Solution icon of stackoverflow
Failure delivering result ResultInfo{who=null, request=131075, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:25147 flg=0x1 }} to activity {com.entu.artapp/com.entu.artapp.activity.FragmentManager}: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference

Solution icon of stackoverflow
Failure delivering result ResultInfo{who=null, request=0, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:61 flg=0x1 }} to activity {com.example.android.mca3project/com.example.android.mca3project.Main2Activity}: java.lang.SecurityException: Access denied to process: 12150, must have permission android.permission.SET_WALLPAPER

Solution icon of web
Failure delivering result ResultInfo{who=null, request=131075, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:25147 flg=0x1 }} to activity {com.entu.artapp/com.entu.artapp.activity.FragmentManager}: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference

Solution icon of github
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

Solution icon of stackoverflow
Failure delivering result ResultInfo{who=null, request=65539, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:4904 flg=0x1 }} to activity {com.inthecheesefactory.lab.designlibrary

Solution icon of stackoverflow
Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:21776 flg=0x1 }} to activity {com.example.manpreetsingh.gridviewimages/com.example.manpreetsingh.gridviewimages.MainActivity}: android.content.res.Resources$NotFoundException: String resource ID #0x0

Solution icon of stackoverflow
via Stack Overflow by Mohammad
, 1 year ago
Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:53573 flg=0x1 }} to activity {com.myapp/com.myapp.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference

Solution icon of stackoverflow
Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://com.android.providers.downloads.documents/document/4 flg=0x1 }} to activity {org.pitechnologies.filetransfer/org.pitechnologies.filetransfer.MainActivity}: java.util.NoSuchElementException

Stack trace

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=328091, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/video:4082 flg=0x1 }} to activity {my.app/my.app.activity.RootActivity}: java.lang.IllegalStateException
	at android.app.ActivityThread.deliverResults(ActivityThread.java:3839)
	at android.app.ActivityThread.handleSendResult(ActivityThread.java:3882)
	at android.app.ActivityThread.access$1300(ActivityThread.java:178)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1519)
	at android.os.Handler.dispatchMessage(Handler.java:111)
	at android.os.Looper.loop(Looper.java:194)
	at android.app.ActivityThread.main(ActivityThread.java:5637)
	at java.lang.reflect.Method.invoke(Method.java)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

96 times, 4 days ago
295 times, 2 weeks ago
9 times, 3 months ago
37 times, 3 months ago
376 times, 3 months ago
172 more bugmates