我想在Mac上連接Iphone設備。 我已經嘗試了下面的代碼在我的應用程序中找到它。如何在Java桌面應用程序中使用Iphone連接便攜式設備?
FileSystemView fsv = FileSystemView.getFileSystemView();
File[] roots = fsv.getRoots();
File[] f = File.listRoots();
System.out.println("dao.getDevices() "+f.length);
for (int i = 0; i < f.length; i++)
{
System.out.println(" device name is : "+fsv.getSystemDisplayName(f[i]));
}
我也試過Jmtp.jar以獲得下面的代碼的PortableDevice。
PortableDeviceManager manager = new PortableDeviceManager();
if(manager!=null)
{
PortableDevice device = manager.getDevices()[0];
// Connect to my mp3-player
device.open();
System.out.println(device.getModel()+" and name"+
device.getFriendlyName()+" and "+device.getDescription();
}
但是Jmtp.jar
不支持Mac OS。
有什麼辦法由核心的Java應用程序來獲得在Mac連接iPhone設備...
我的想法:我想你可以寫一些程序來做到這一點,當你有一個真正的問題時,回到這裏。 –
FileSystemView fsv = FileSystemView.getFileSystemView(); \t File [] roots = fsv.getRoots(); \t \t \t 文件\t [] F = File.listRoots(); (int i = 0; i
Ifran
我已更新我的問題。 – Ifran