当我在Android 31上复制文件时
我需要重新记录视频并将其复制到我的私人存储空间中,但是当我复制文件时,thf thf thf thf thf tof filegalStateException
这里的解决方案是什么?
E/AndroidRuntime: FATAL EXCEPTION: pool-25-thread-1
Process: com.majd.paraibachat, PID: 13789
java.lang.IllegalStateException: Only owner is able to interact with pending item content://media/external_primary/video/media/150
at android.os.Parcel.createExceptionOrNull(Parcel.java:2433)
at android.os.Parcel.createException(Parcel.java:2409)
at android.os.Parcel.readException(Parcel.java:2392)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:190)
at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:153)
at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:780)
at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:2027)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1842)
at android.content.ContentResolver.openInputStream(ContentResolver.java:1518)
at com.majd.paraibachat.persistance.FileBackend.copyFileToPrivateStorage(FileBackend.java:716)
at com.majd.paraibachat.persistance.FileBackend.copyFileToPrivateStorage(FileBackend.java:917)
at com.majd.paraibachat.services.AttachFileToConversationRunnable.processAsFile(AttachFileToConversationRunnable.java:71)
at com.majd.paraibachat.services.AttachFileToConversationRunnable.run(AttachFileToConversationRunnable.java:176)
at com.majd.paraibachat.utils.SerialSingleThreadExecutor$Runner.run(SerialSingleThreadExecutor.java:60)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
I need to rerecord video and copy to my Private Storage but when I copy file throw IllegalStateException
What is the solution here?
This video shows how the crash occurs
E/AndroidRuntime: FATAL EXCEPTION: pool-25-thread-1
Process: com.majd.paraibachat, PID: 13789
java.lang.IllegalStateException: Only owner is able to interact with pending item content://media/external_primary/video/media/150
at android.os.Parcel.createExceptionOrNull(Parcel.java:2433)
at android.os.Parcel.createException(Parcel.java:2409)
at android.os.Parcel.readException(Parcel.java:2392)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:190)
at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:153)
at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:780)
at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:2027)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1842)
at android.content.ContentResolver.openInputStream(ContentResolver.java:1518)
at com.majd.paraibachat.persistance.FileBackend.copyFileToPrivateStorage(FileBackend.java:716)
at com.majd.paraibachat.persistance.FileBackend.copyFileToPrivateStorage(FileBackend.java:917)
at com.majd.paraibachat.services.AttachFileToConversationRunnable.processAsFile(AttachFileToConversationRunnable.java:71)
at com.majd.paraibachat.services.AttachFileToConversationRunnable.run(AttachFileToConversationRunnable.java:176)
at com.majd.paraibachat.utils.SerialSingleThreadExecutor$Runner.run(SerialSingleThreadExecutor.java:60)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:920)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论