I have following permissions set in AndroidManifest.xml <uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
And there is android:configChanges="orientation" value set for the activity. I am using following code in my activity to enable Bluetooth device if (!btAdapter.isEnabled()) { Intent enableBtIntent = new Intent( BluetoothAdapter.ACTION_REQUEST_ENABLE); int REQUEST_ENABLE_BT = 0; startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT); } This is working fine but if Bluetooth enabled already but if its not then - new instance of 'Bluetooth permission request' dialog is re- created every time when the orientation is changed. How to avoid this ? Can i set android:configChanges="orientation" property for 'Bluetooth permission request' dialog ? Is there any way to enable Bluetooth without showing 'Bluetooth permission request' dialog ? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en