This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

The APP of phone(support bt 4.0) connecting to cc2540 mini DK

Other Parts Discussed in Thread: CC2540

hellow everyone : 

At last ,i want cc2540 mini DK connect to  phone(support bt 4.0) with app,so ,i got a demo from  moto , unfortunately, i haven't moto razr ,only have HTC T328t (support bt 4.0),then setup this app and run on HTC T328t ,the "Bluetooth Low Energy is not supported on this phone !" was showed,hence,i look for the code in demo ,following is the part of code:

/* Check if Bluetooth Low Energy is supported on phone */
        try
        {
        Class<?> object = Class.forName(className); //className = "android.server.BluetoothGattService";
        ifPhoneSupportsLE = true;

        } catch (Exception e) {
        ifPhoneSupportsLE = false;
        } //End logic to check Low Energy support
       
        if (!ifPhoneSupportsLE) {
         
         String message = "Bluetooth Low Energy is not supported on this phone !";
            Toast.makeText(mContext, message, Toast.LENGTH_SHORT).show();
            finish();
            return;
        } else {
       
         data[0] = 0x00;
  data[1] = 0x00;
       
        // Set up the window layout
        setContentView(R.layout.main);
 
        // Get local Bluetooth adapter
        mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
        if (mBluetoothAdapter == null) {
            Toast.makeText(this, "Bluetooth is not available", Toast.LENGTH_LONG).show();
            finish();
            return;
        }

 Does it mean the android system of HTC doesn't have the  "android.server.BluetoothGattService",so, how to solve it ?    help...................!