I had a permission to use 'controlTransfer()' method of UsbDeviceConnection 
with USB audio device that is connected to Android Host device.

I controlled USB audio device with 'controlTransfer()' and then I released 
all of USB resources like below.

if (mUsbDevConnection != null) {
    if (mUsbInterface != null) {
        mUsbDevConnection.releaseInterface(mUsbInterface);
    }

    mUsbDevConnection.close();
    mUsbDevConnection = null;
}

if (mUsbDevice != null) {
    mUsbDevice = null;
}

But when I tried to play a music with other player app, the music sound 
wasn't outputted with the USB audio device. 

The sound was outputted with the speakder of a android smartphone.

How can I release USB resources of audio device rightly to use the USB 
device with other android app?

OR What can I do to use the USB device with other android app without 
re-plugin the USB audio device.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to