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(enableBtIntent, REQUEST_ENABLE_BT);
}
It alerts "*Force Close*"
On Sun, May 29, 2011 at 5:32 PM, Jonas Petersson <[email protected]>wrote:

> 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.com/guide/topics/wireless/bluetooth.html
>
> Best / Jonas
>
> --
> 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




-- 
Regards,
Khanh.

-- 
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

Reply via email to