B4J Question Adb get number incomingcall

MarcoRome

Expert
Licensed User
Hi All.
I need to know the number of who is calling through adb
We know that:

B4X:
''****Close Call
'        'adb shell input keyevent KEYCODE_ENDCALL
'       Dim shl2 As Shell
       shl2.Initialize("shl2", $"D:\Android\platform-tools\adb.exe"$, Array($"shell"$, $"input"$, "keyevent","KEYCODE_ENDCALL"))
        shl2.Run(-1)
       Wait For shl2_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
        Log($"${Success}, ${ExitCode}, ${StdOut}, ${StdErr}"$)
        
'        '****Answer Call
'        'adb shell input keyevent KEYCODE_CALL
       Dim shl2 As Shell
       shl2.Initialize("shl2", $"D:\Android\platform-tools\adb.exe"$, Array($"shell"$, $"input"$, "keyevent","KEYCODE_CALL"))
       shl2.Run(-1)
        Wait For shl2_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
       Log($"${Success}, ${ExitCode}, ${StdOut}, ${StdErr}"$)
it is possible to know the number of who is incomingcall ??
Thank you
 
Top