I have encountered strange issue. From Activity I request Bluetooth
activation and 120s discoverability via intent:

    Intent activateBTIntent = new
Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);
    startActivityForResult(activateBTIntent, BT_ACTIVATE_INTENT);

I use it no matter if the Bluetooth is already activated or not.
Android documentation says that Bluetooth will be activated if it was
not, and that works fine. In both cases I get system Alert dialog
saying

"Bluetooth permission request: An application on your phone is
requesting permission to turn on Bluetooth and ..."

When I rotate the screen I observe flickering. Press on Yes/No removes
one dialog, but there is still another one below. Performing screen
rotation I can get a pile of Alert dialogs, and have to press Yes/No
on each to get rid of them.

Described issue is present only if Bluetooth was not already started
when intent was sent, otherwise it works correctly. Tried on different
2.2 phones, and issue is present on all. Looks to me like Android
system issue.

Has anybody encountered it also, and maybe have some useful hint how
to avoid this?

Thanks and best regards.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to