Re: [android-developers] Cannot enable Bluetooth

2011-05-29 Thread Kristopher Micinski
Did you make sure you got the right permissions? What is the error (check your logcat after the force close, or catch the exception in the debugger.) On May 29, 2011 10:41 AM, "Jonas Petersson" wrote: Hi again Kahn, On 2011-05-29 16:24, khanh_qhi™ wrote: > > What Andoird APIs level does Bluet

Re: [android-developers] Cannot enable Bluetooth

2011-05-29 Thread Jonas Petersson
Hi again Kahn, On 2011-05-29 16:24, khanh_qhi™ wrote: What Andoird APIs level does Bluetooth support? You'll need at least 2.0 for SDK BT support (with a fair amount of effort you MAY be able to enable it in 1.x, but for that you are in the wrong group). I cannot enable Bluetooth, could s

Re: [android-developers] Cannot enable Bluetooth

2011-05-29 Thread khanh_qhi™
Hi everyone, What Andoird APIs level does Bluetooth support? I cannot enable Bluetooth, could someone instruct me to enable this? On Sun, May 29, 2011 at 5:32 PM, Jonas Petersson wrote: > Hi Khan, > > > On 2011-05-29 12:22, khanh_qhi™ wrote: > >> I'm creating an simple chatter appllication on And

Re: [android-developers] Cannot enable Bluetooth

2011-05-29 Thread khanh_qhi™
Hi Jonas, I have tried this one, but it didn't solve this problem. Here is my use: mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); if (!mBluetoothAdapter.isEnabled()) { Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(enableBtInten

Re: [android-developers] Cannot enable Bluetooth

2011-05-29 Thread Jonas Petersson
Hi Khan, On 2011-05-29 12:22, khanh_qhi™ wrote: I'm creating an simple chatter appllication on Android via Bluetooth. I use *mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();* but,*mBluetoothAdapter = null, *so I don't know how to eable *BluetoothAdapter*? Tried this? http://developer

[android-developers] Cannot enable Bluetooth

2011-05-29 Thread khanh_qhi™
Hi everyone, I'm creating an simple chatter appllication on Android via Bluetooth. I use *mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();* but,* mBluetoothAdapter = null, *so I don't know how to eable * BluetoothAdapter*? --- Regards, Khanh. -- You received this message because you are