hey guys...
i wanted to make some sort of a demo which i could run from a service to study the AudioManager states/modes
since im not too good with reflection.. and dont know how to incorporate this stuff from SDK... needed your help...
thanx in advance...
this is what i got from the Android SDK link
---------1---------
public int getMode ()
Added in API level 1
Returns the current audio mode.
Returns
the current audio mode (MODE_NORMAL, MODE_RINGTONE, MODE_IN_CALL or MODE_IN_COMMUNICATION). Returns the current current audio state from the HAL.
----------2-------------
public static final int MODE_IN_CALL
Added in API level 1
In call audio mode. A telephony call is established.
Constant Value: 2 (0x00000002)
---------3----------
public boolean isMicrophoneMute ()
Added in API level 1
Checks whether the microphone mute is on or off.
Returns
true if microphone is muted, false if it's not
-----------------x--x-x-------------------------
can anyone show me how to incorporate this in coding.. will realy be helpful
i wanted to make some sort of a demo which i could run from a service to study the AudioManager states/modes
since im not too good with reflection.. and dont know how to incorporate this stuff from SDK... needed your help...
thanx in advance...
this is what i got from the Android SDK link
---------1---------
public int getMode ()
Added in API level 1
Returns the current audio mode.
Returns
the current audio mode (MODE_NORMAL, MODE_RINGTONE, MODE_IN_CALL or MODE_IN_COMMUNICATION). Returns the current current audio state from the HAL.
----------2-------------
public static final int MODE_IN_CALL
Added in API level 1
In call audio mode. A telephony call is established.
Constant Value: 2 (0x00000002)
---------3----------
public boolean isMicrophoneMute ()
Added in API level 1
Checks whether the microphone mute is on or off.
Returns
true if microphone is muted, false if it's not
-----------------x--x-x-------------------------
can anyone show me how to incorporate this in coding.. will realy be helpful