redwarp / gifdecoder

An implementation of a gif decoder written 100% in Kotlin, plus an associated Drawable for Android
Apache License 2.0
47 stars 6 forks source link

upgrade target sdk version cannot access file directly #28

Closed vince-styling closed 6 months ago

vince-styling commented 7 months ago

hi, it's been a long time to come here, I upgrade my app's targetSdkVersion to 34, now I can't access the media resource by File api, only Uri, I can get the absolute path from it, but when I try to turn it as RandomAccessFile, I got a FileNotFoundException, so the problem is we can't have a RandomAccessFile easily any more, only take the return from ContentResolver#openFileDescriptor(android.net.Uri) which cannot turn to RandomAccessFile directly

redwarp commented 7 months ago

Hey there. I'm not sure exactly what I mean by that. What are you trying to do? What was working before and doesn't work anymore? Can you paste some sample code? I'm confused

redwarp commented 6 months ago

No activity there, closing.