Hello:
Is it possible to get the audio state ?
Like: Bluetooth, loudspeaker, earphone(the part that you put up to the ear) etc...
I know you can use this to set the state:
Dim r As Reflector
r.Target = r.GetContext
r.Target = r.RunMethod2("getSystemService", "audio", "java.lang.String")
Log("Audio Target = " & r.Target)
Dim mode As Int
If Value Then mode = 0 Else mode = 2
r.RunMethod2("setMode", mode, "java.lang.int")
But I need to GET the state.
Thank you:
SoyEli
Is it possible to get the audio state ?
Like: Bluetooth, loudspeaker, earphone(the part that you put up to the ear) etc...
I know you can use this to set the state:
Dim r As Reflector
r.Target = r.GetContext
r.Target = r.RunMethod2("getSystemService", "audio", "java.lang.String")
Log("Audio Target = " & r.Target)
Dim mode As Int
If Value Then mode = 0 Else mode = 2
r.RunMethod2("setMode", mode, "java.lang.int")
But I need to GET the state.
Thank you:
SoyEli