2011-10-26 49 views

回答

0

這是一種可能性:

在您的應用程序中添加一個usb intent過濾器。

<intent-filter> 
    <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /> 
</intent-filter> 

在您的應用程序intent方法中,取出UsbDevice,然後獲取其UsbDeviceConnection對象並關閉()它。

我不知道它是否有效,但這就是我想試試看的文檔。

http://developer.android.com/guide/topics/usb/host.html

可能有清潔劑的方法,然後這個,但你可以試試。