D DT1111 Member Licensed User Longtime User Mar 9, 2015 #1 Sorry if the subject is ambiguous. I have used apps that connect via Bluetooth and whenever I click on the "Connect" button and if the Bluetooth in settings has not been turned on, the app automatically brings me to the Android settings in order to turn on BT and then lists all the paired BT connections. How do I code that in B4A? Thanks
Sorry if the subject is ambiguous. I have used apps that connect via Bluetooth and whenever I click on the "Connect" button and if the Bluetooth in settings has not been turned on, the app automatically brings me to the Android settings in order to turn on BT and then lists all the paired BT connections. How do I code that in B4A? Thanks
Erel B4X founder Staff member Licensed User Longtime User Mar 10, 2015 #2 You can use this code: Code: Dim i As Intent i.Initialize("android.settings.BLUETOOTH_SETTINGS", "") StartActivity(i) You can also enable the Bluetooth yourself with BluetoothAdmin. Upvote 0
You can use this code: Code: Dim i As Intent i.Initialize("android.settings.BLUETOOTH_SETTINGS", "") StartActivity(i) You can also enable the Bluetooth yourself with BluetoothAdmin.
Peter Simpson Expert Licensed User Longtime User Mar 10, 2015 #3 More about it can be found on the following link @DT1111 http://developer.android.com/reference/android/provider/Settings.html under constants... Upvote 0
More about it can be found on the following link @DT1111 http://developer.android.com/reference/android/provider/Settings.html under constants...