How do I open the Bluetooth Settings Activity programmatically?

前端 未结 5 1693
面向向阳花
面向向阳花 2020-12-17 08:26

I want to open bluetooth settings on button click like this see image\"bluetooth

HomeActivity.

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-17 08:57

    If you want to open up the scan dialog (without leaving your app).

        Intent bluetoothPicker = new Intent("android.bluetooth.devicepicker.action.LAUNCH");
        startActivity(bluetoothPicker);
    

提交回复
热议问题