Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to load from asset folder or subfolders #15

Open
najam-amfnrh9 opened this issue Jul 14, 2023 · 13 comments
Open

Fails to load from asset folder or subfolders #15

najam-amfnrh9 opened this issue Jul 14, 2023 · 13 comments

Comments

@najam-amfnrh9
Copy link

file opening from assets fails... I think you have used wrong check file://android_asset...

@oupson
Copy link
Owner

oupson commented Jul 14, 2023

When do you have the issue ? When using the app or the library. If it is with the library, can you show me an example of how you tried ?

@najam-amfnrh9
Copy link
Author

just few minutes ago, while using library...

@oupson
Copy link
Owner

oupson commented Jul 14, 2023

I can't help you if you don't provide more informations.

@najam-amfnrh9
Copy link
Author

image

i want to open asset subdirect file directly but condition over string startWith is not letting me to do,
string.startsWith("file://android_asset/")

@najam-amfnrh9
Copy link
Author

i think it chould be file:///android_asset, because you're replacing the input string...
to alter it i've to create a cache file to utilize it, that is working fine...

@oupson
Copy link
Owner

oupson commented Jul 14, 2023

Thanks for your report, I will investigate. In the meantime you can also load an APNG from an input stream that you can get with the asset manager.

@najam-amfnrh9
Copy link
Author

that is not returning callback... :)

@najam-amfnrh9
Copy link
Author

Kindly, check it early so that i can get rid of creating extra cache files to display

@oupson
Copy link
Owner

oupson commented Jul 14, 2023

Bug fixed on master, I will release a new version soon !

@najam-amfnrh9
Copy link
Author

najam-amfnrh9 commented Jul 14, 2023 via email

@najam-amfnrh9
Copy link
Author

Hi, have you uploaded the library to mavenCentral() as by changing library version I couldn't getting pkg access

@oupson
Copy link
Owner

oupson commented Jul 19, 2023

Seems like jitpack failed to build-it, I will look at it when I will have some time free

@oupson
Copy link
Owner

oupson commented Jul 19, 2023

Fixed in master, I will release a new version soon.

In the mean time, the following should work :

implementation 'com.github.oupson:Kapng-Android:master-SNAPSHOT'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants