How do I open the Bluetooth Settings Activity programmatically?

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

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

HomeActivity.

5条回答
  •  时光取名叫无心
    2020-12-17 09:05

    I think you should try this easier one :

    startActivity(new Intent(android.provider.Settings.ACTION_BLUETOOTH_SETTINGS));
    

提交回复
热议问题