-
Notifications
You must be signed in to change notification settings - Fork 72
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
hid4java Android #83
Comments
At present Android isn't supported. I'm considering it for the latest 0.6.0 release which has some newer native libraries. If you'd like to try compiling |
have you any idea ? how to start ? |
I had a quick look at it earlier today using
As you can see it's quite complex and you may find it easier to compile I may get some time next week to look at this but hopefully the above will get you started. |
it's seems hard to implement, i tried with the standard library android UsbManager
it's seems the same function used in the C native library that you used for your library using your library , the parameters of this functions are writen automatically, now i don't know how to catch all this parameters from the log of C library (may be i can reproduce it with the android sdk standard) parameters are : i don't really understand the 4 first parameters how can i debog the C library to follow the logout of all parameters just before the send ? |
it will be very nice if you can do the same thing for Android OS |
I have some more time to work on hid4java these days so I'll see about getting Android working within the cross-compilation toolset. |
you don't need to develop anything on android here is a class for HidDriver (example) with Android SDK |
Thanks, Chakib. That code looks ideal for Android developers to use and makes a lot more sense than having a dedicated HID library. I'll mark this as closed and remove Android support as a requirement. |
Hi i try to implement this library in an Android OS
to add the depo maven in build.gradle (module:app)
dependencies {
compile 'org.hid4java:hid4java:0.5.0'
}
when the execution is in this line
HidServices hidServices = HidManager.getHidServices(hidServicesSpecification);
i have an exception :
Caused by: org.hid4java.HidException: Hidapi did not initialise: Native library (com/sun/jna/android-arm/libjnidispatch.so) not found in resource path (.)
have you a solution ? an idea ? thank u
The text was updated successfully, but these errors were encountered: