Hi i will summarize the problem,

There is know problem in all the Android phones.

Go to Bluetooth Settings->Turn ON bluetooth->Click on bluetooth
discovery->Then timer will start in summary->Long press on Bluetooth
device discovery-> observe Bluetooth ON/OFF title start to toggle with
Bluetooth Discovery toggle.

I analyzed the issue.

Blueooth ON/OFF is CheckBoxPreference.
Bluetooth Discovery is also CheckBoxPreference which has dependency on
Bluetooth ON/OFF.

When we click on Bluetooth discovery then On thread will run at every
second to update summary in  Bluetooth Discovery preference. When we
change the Bluetooth discovery to OFF then thread will be removed/
killed. When i press the Bluetooth discovery for long time when its
already in ON State then still the thread will be updating the summary
(remaining time from 120 to 00) till i press it. When i leave the
Thread will stop. As it has dependency on Bluetooth ON/OFF, its making
to the title invisible. But it should not happen.

Solution: When i touch the Device Discovery i should kill the update
summary thread then i guess, that problem will be solved. But in
prefence i dont have any listener to know the pressed state.

I hope somebody can give me solution.

Regards
Sameer
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to