hi guys...
i was studying PhoneStateChanged...
but not sure if it suits what i want... can some one advise me
Im basically trying to know... states about an OUTGOING CALL... thats when i am calling another phone..
How to get those states... like...
RINGING(after we've dialed their number)...
ANSWERED(by the other party)...
ON GOING CALL...
@persianpowerman1: I can successfully catch the OUTGOING CALL EVENT by using Broadcastreceiver library. Not sure that it does work for all versions Android or all phone models.
B4X:
Sub BroadcastReceiver_OnReceive (Action As String, BroadcastIntent As Object)
If myintent.Action = "android.intent.action.NEW_OUTGOING_CALL" Then
If myintent.HasExtra("android.intent.extra.PHONE_NUMBER") Then
Dim callnumber As String = myintent.GetExtra("android.intent.extra.PHONE_NUMBER")
Log(callnumber)
End If
End If
End Sub
hey bsnqt... your code looks promising... will give it a try... am travelling right now... should be home by night will try it then...
I basically was trying make what some app does... ie...
Suppose i dial your phone number... its ringing... the moment you pick up... i get a little vibration in my hand(so i know you have picked up)... it helps because... i dont have to sit with the phone stuck to my ear to realise you have picked up... got it
thanx.. will write back... lemme know if you can think of any work around
I got another idea...
how about... being able to see when the dialer starts the time(that is when the call is picked up at the other end)... usually the timer for the call starts from 0:00... 0:01... 0:02...etc... pls see the image...
if i can catch that... it should work right? i would know when the other party that i am calling has picked up the phone... what say?.. any ideas
i've drawn an arrow around what im trying to say...
YO!han