Hello all..

This is a simple example to check whether your android device supports Bluetooth or not.
May be currently all devices may have bluetooth support, but still ………….

package pack.coderzheaven;

import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.os.Bundle;

public class BluetoothExample extends Activity  {
    public void onCreate(Bundle savedInstanceState) {

        BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
        if (mBluetoothAdapter == null) {
            System.out.println("Device do not support Bluetooth..");

One Comment

  1. Louis Cantu July 13, 2011 at 6:21 pm

    Hey I think I should the code of my device because its giving me connectivity problem…. Thanks for the script you have provided.


Leave a Reply

Your email address will not be published. Required fields are marked *




Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.