hi with this broadcastreceiver library you can setresultdata to make app like speedcall and ...
i hope this library help you
i hope this library help you
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim pbr As BCR
End Sub
Sub Service_Create
pbr.addaction("android.intent.action.NEW_OUTGOING_CALL")
pbr.registerreciver
End Sub
Sub Service_Start (StartingIntent As Intent)
End Sub
Sub received (RI As Object)
Dim rii As Intent = RI
Log(rii.ExtrasToString)
pbr.result = FormatNumber(<any thing you want>)
End Sub
Sub Service_Destroy
pbr.unregisterreceiver
End Sub
Sub FormatNumber(n As String) As String
Dim r As Reflector
Return r.RunStaticMethod("android.telephony.PhoneNumberUtils", "formatNumber", _
Array As Object(n), Array As String("java.lang.String"))
End Sub