[android-developers] How to monitor a usb-serial device plug-in and plug-out

2011-10-19 Thread jianwei
Hello Experts: My Android device with a usb host port. I would like to have a service to monitor whether there is a usb device attached to this port. I could attach or detach a usb device to the Android device in any time. when the usb device is attached, the monitor will know it, then

[android-developers] Re: How to redirect audio to bluetooth headset?

2009-05-22 Thread jianwei
there is a lot of information > available on the web. > > On May 22, 7:02 am, jianwei wrote: > > > What's SCO? What's A2DP? I'm not clear about that. Did that mean if i > > using A2DPbluetoothheadset, all audioes will auto play by > >bluetoothheadset? And not

[android-developers] Re: How to redirect audio to bluetooth headset?

2009-05-22 Thread jianwei
l stereo codec. With the Cupcake 1.5 release, we support A2DP > out of the box. If the user pairs and connects an A2DPheadset, there > is nothing the application has to do - it just works. > > On May 20, 6:46 pm, jianwei wrote: > > > Thanks for your responese. > > D

[android-developers] Re: How to redirect audio to bluetooth headset?

2009-05-22 Thread jianwei
upcake 1.5 release, we support A2DP > out of the box. If the user pairs and connects an A2DP headset, there > is nothing the application has to do - it just works. > > On May 20, 6:46 pm, jianwei wrote: > > > Thanks for your responese. > > Does this mean all audio in th

[android-developers] Re: How to redirect audio to bluetooth headset?

2009-05-20 Thread jianwei
Or if i want to controll bluetooth headset, i should contain bluetooth package? Dave Sparks wrote: > We don't support sending app processor audio over SCO. The audio > quality would be very poor. > > On May 20, 6:51 am, jianwei wrote: > > Hi all, > > I met a problem

[android-developers] Re: How to redirect audio to bluetooth headset?

2009-05-20 Thread jianwei
Thanks for your responese. Does this mean all audio in thirdparty application can't play in bluetooth headset? Dave Sparks wrote: > We don't support sending app processor audio over SCO. The audio > quality would be very poor. > > On May 20, 6:51 am, jianwei wrote: &

[android-developers] How to redirect audio to bluetooth headset?

2009-05-20 Thread jianwei
Hi all, I met a problem of bluetooth headset. I want to switch audio playing to bluetooth headset when bluetooth headset is paired. I found BluetoothDevice in android sources which can controll bluetooth. However it is not contained in android.jar. So I used AudioManager.setBluetoothScoOn(true), b

[android-developers] Issue of focus setting

2009-04-01 Thread jianwei
Hi all, I want to set default focus in the first focusable view when entering a new screen, and i use view.requestFocus(View.FOCUS_DOWN) (view is the root ViewGroup), but it doesn't work. The method alway return false. And i also found a strange situation: view.getFocusables (View.FOCUS_DOWN) wil

[android-developers] How to record audio stream?

2009-03-10 Thread jianwei
Hi all, I want to send audio stream to internet directly, instead of store in the file. But the output of MediaRecord only supports file by seting setOutputFile(String path) , not OutputStream. Is there any methods to do this? Thanks. --~--~-~--~~~---~--~~ You

[android-developers] View and Animation

2009-02-18 Thread Zhang Jianwei
Hi I make a view to move from one position to another position use animation, but the same that only the original area could called the click event. How can I do to let it can be clicked where it moving to? Please help me, thanks very much! Jianwei