Click here to Skip to main content
15,885,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to display the name of device along with its property connected with USB,i am able to detect the drive which are plugged in,but if am connecting iphone no drive is created so how to detect that device.
Posted

 
Share this answer
 
Comments
TorstenH. 1-Sep-12 9:12am    
That's for web development.
naina11 4-Sep-12 8:30am    
thanx for ur answer,but the problem is i am working on a desktop application and what i need to do is to detect whether the connected device through usb is phone or not and then access its property like version,serial number etc
The USB Device is connected to your computer - and therefor referenced by the operting system.

SO there is not really a need to detect the device - you can simply check for USB devices and request who they are.

Java and USB @ Java.net[^]
 
Share this answer
 
Comments
naina11 4-Sep-12 8:30am    
thanx for ur answer,but the problem is i am working on a desktop application and what i need to do is to detect whether the connected device through usb is phone or not and then access its property like version,serial number etc
TorstenH. 4-Sep-12 9:28am    
Read the linked article and then follow the suggested libraries. The JavaUSB for example looks very good.
With that you can easily access USB, ask the device what it is and process all there is to do.

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