B4J Question Adb get number incomingcall

Discussion in 'B4J Questions' started by MarcoRome, Nov 6, 2019.

  1. MarcoRome

    MarcoRome Expert Licensed User

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

    Code:
    ''****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
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    I don't think so. Why not create a B4A app that monitors the incoming calls and sends a message to the PC.
     
    MarcoRome likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice