Click here to Skip to main content
15,907,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

one question about usb connection.

On Android I use the following class to connect a USB Device:

import android.hardware.usb.*

Now I want to run my Android project on a Linux Machine (Mint 18.3). Which classes can I use to connect the usb device?



What I have tried:

I wrote a sample project with NetBeans which shall communicate with the USB device over JNA.
Updated 8-Apr-18 15:49pm

1 solution

A quick google for "linux java usb" came up with several libraries you could use. usb4java - About[^] looks a good starting point.
Share this answer
Peter____ 10-Apr-18 14:12pm    
Hello Peter_in_2780,

thanks for the fast reply. This class was, what I was looking for.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900