I am using the following code for my project. Hope this helps you understand my problem.
btconnect = (Button)findViewById(R.id.btn_connect); btconnect.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { try { mFindMe.connect(mDevice); } catch(Exception e) { Log.d("Error","connecting"); } } }); setUiState(); registerReceiver(regReceiver, new IntentFilter(FindMeProfileClient.FINDME_REGISTERD)); mDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(HRM_BD_ADDRESS); mFindMe = new FindMeProfileClient(this);
I also found that the public static final String BLUETOOTH_LE_SERVICE missing from the broadcom jar file, so the mservice variable is null.
Please kindly provide any help on this low energy bluetooth profile.
source share