Vibrate or Mute | developer.brewmp.com Vibrate or Mute | developer.brewmp.com

Developer

Vibrate or Mute

Forums:

How to know phone is set to vibrator or mute.
Is there any API for this?

with regards
Nitin

Feature added in 3.x (ISHELL_GetDeviceInfoEx).
For some devices, you can query for volume when the applicaiton starts. This only works for some devices and it doesn't help with vibrate.

Feature added in 3.x (ISHELL_GetDeviceInfoEx).
For some devices, you can query for volume when the applicaiton starts. This only works for some devices and it doesn't help with vibrate.

Thanx for Replay,
Do u mean that there is no exact way to know device ringer is set to silent or vibrate?

Thanx for Replay,
Do u mean that there is no exact way to know device ringer is set to silent or vibrate?

Not in BREW versions previous to 3.x.

Not in BREW versions previous to 3.x.

Jonathan wrote:Not in BREW versions previous to 3.x.
I'm using 3.1.2 with the solution described in this
other thread but it does not work on LG9800.
uint32 iMode;
int iSize = sizeof(uint32);
if (SUCCESS==ISHELL_GetDeviceInfoEx(GETAPPINSTANCE()->m_pIShell, AEE_DEVICEITEM_MANNER_MODE, (void*)&iMode, &iSize))
{
...

Function always succeed, but iMode is always 0 regardless of what the master volume setting is. I'd set the master volume to Sounds Off and it will still be 0 (AEE_MANNER_MODE_NORMAL) instead of AEE_MANNER_MODE_SILENT....

Jonathan wrote:Not in BREW versions previous to 3.x.
I'm using 3.1.2 with the solution described in this
other thread but it does not work on LG9800.
uint32 iMode;
int iSize = sizeof(uint32);
if (SUCCESS==ISHELL_GetDeviceInfoEx(GETAPPINSTANCE()->m_pIShell, AEE_DEVICEITEM_MANNER_MODE, (void*)&iMode, &iSize))
{
...

Function always succeed, but iMode is always 0 regardless of what the master volume setting is. I'd set the master volume to Sounds Off and it will still be 0 (AEE_MANNER_MODE_NORMAL) instead of AEE_MANNER_MODE_SILENT....