Hello
I got the "ToastMessageShow(strNumber, True)" to work but
not the textbox's
When phone rings the app terminates and I get a regular screen with the ToastMessageShow showing the number, after hangup
reloads debugger and app.
What am i missing?
Thank you
Sub PE_PhoneStateChanged (State As String, IncomingNumber As String, Intent1 As Intent)
strNumber = IncomingNumber
strState = State
'State - One of the three values: IDLE, OFFHOOK, RINGING. OFFHOOK means that there is a call or that the phone is dialing.
ToastMessageShow(strNumber, True)
'Then something like:
If strState = "RINGING" Then
EditText1.Text = strNumber
End If
If strState = "IDLE" Then
EditText1.Text = "IDLE"
End If
If strState = "OFFHOOK" Then
EditText1.Text = "OFFHOOK"
End If
End Sub