-
Notifications
You must be signed in to change notification settings - Fork 15
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
Requires Android Oreo or later #16
Comments
I think I might be able to get around this. |
So I did some research into this, and I can get by the toPath() issue, but I need the Base64 encoder for images, which was added in Android 8 as well (https://developer.android.com/reference/java/util/Base64). I could write my own base64 encoder in the future (I've written one before and it was slow - don't think I have the code for it anymore). I am on break from college in a week, so I will add a workaround then. (Android allows you to check the API version and I can run the efficient code on new devices and the custom code on old devices) |
@kylecorry31 That's awesome news, thanks! |
@dalelane This issue should now be resolved with the latest release (and the master branch's release/ folder has been updated) Could you test the latest version on the Android 7.1 device for me? I am going to mark this issue as closed for now, as it appears all of the offending code has backfills now. |
Contributes to: kylecorry31/ML4K-AI-Extension#16 Signed-off-by: Dale Lane <dale.lane@uk.ibm.com>
@kylecorry31 Thanks for doing this! (I've not had a chance to test it yet, but will let you know when I do) |
@kylecorry31 Sorry for taking so long to get to this - Christmas got in the way :-) I'm still not having much luck. I was trying to use an image classifier. If I use the Camera, then the data seems to be missing from the classification request. (I just got a HTTP 400 Missing data error response) If I use the Image Picker, I get a crash
|
Have you tried doing a project using the Camera, without needing to take a picture and then go via the Image Picker? That's a sort of side issue I guess though, as it looks like the Base64-encoding would be a problem either way. |
Hello, thanks for the update. I have attached an extension file which should fix that "no static method" issue - please let me know if that fixes the issue. I will look into the camera issue, thanks |
@kylecorry31 That did the trick with the Image Picker - thanks! |
Awesome, thanks! |
Contributes to: kylecorry31/ML4K-AI-Extension#16 Signed-off-by: Dale Lane <dale.lane@uk.ibm.com>
Tried running something on a second-hand Android device I was able to get hold of, and it crashed with:
According to threads like osiegmar/FastCSV#16 and https://bitbucket.org/ijabz/jaudiotagger/issues/113/cannot-run-under-android-could-not-find it's because that method isn't available on the version of Android that I have (Android 7.1).
I don't know if there is a way to code around this. If not, it might be worth a warning somewhere to say that the image block needs Android 8 or later.
The text was updated successfully, but these errors were encountered: