hi erel.. thanx for showing me how to use that...
i put this in PhoneStateReceiver demo i found... and added your code to this proj.
from your lead i also made...
Sub GetMikeVal As Boolean
Dim r As Reflector
r.Target = r.GetContext
r.Target = r.RunMethod2("getSystemService", "audio", "java.lang.String")
Return r.RunMethod("isMicrophoneMute")
End Sub
im kinda understanding how to use RunMethod... though need more learining...
similarly could you teach me how to put this in our B4a code...
------------------------------------
int
STREAM_ALARMThe audio stream for alarms
int
STREAM_DTMFThe audio stream for DTMF Tones
int
STREAM_MUSICThe audio stream for music playback
int
STREAM_NOTIFICATIONThe audio stream for notifications
int
STREAM_RINGThe audio stream for the phone ring
int
STREAM_SYSTEMThe audio stream for system sounds
int
STREAM_VOICE_CALLThe audio stream for phone calls
---------------------------------------
Are these constants... ? to make me under stand ... show me a small piece of code to kinda know when the phone is eg. STREAM_ALARM?
please see my Project too...
YO!han