states for tones and vibration

The boolean objects...

System.getDeviceSettings().tonesOn
System.getDeviceSettings().vibrateOn

...may return a wrong state for widgets, apps etc. - for instance the sound has been set for 'activities only' but the 'tonesOn' returns true also in widgets with no activity active.

I would like to get a correct state for the actual situation or an integer value showing the precise configuration setting.

  • What I do is not even check the settings, I just make the call for the vibration or tone. If the FW thinks it's off, it just doesn't do anything.
  • Jim, I am doing something like that (which is also not ideal because it seems to be important in which order vibration and tunes are initiated), but beside that I think it would be comfortable to give a feedback to the user if possible. So he may understand why the program does not play tunes etc.

    I wrote a small game which allows to switch vibration as well as tones on/off and I show the configuration mode text in red if the effect has been switched off in general. I was wondering why this looks so nice in the simulator but not in real life ;)

    Here are two screenshots ('on' & 'off') of my program "Space Bird" to check what I mean...

  • Former Member
    Former Member
    Hey,

    There are some devices that have multiple states like you are saying. I'm not sure what this should or shouldn't be doing for us with the methods you mentioned. I've created a ticket to double check the intended behavior and report any errors as needed. I too would like it to be consistent.

    Thanks,
    -Coleman