I have written a code but it does not work for API 26.I get the following error : W/BroadcastQueue: Permission Denial: receiving Intent { act=android.intent.action.PHONE_STATE flg=0x1000010 (has extras) } Even though I have given all the permissions required.
thanks for this tutorial i try to debug this app in my real phone but noothing happen, i.e. i call to my phone after i give call permission to the app but when calling incoming the app stop to work (crush). what i need to do for deteting call incoming in real phone? thanks
Yes, I am making an application similar to yours, in which the user calls a certain number, and opens my activity, so I also need the call detector, and the permissions. I tested it, it works until API 25, Android Nugget, on Oreo is not working, probably because of Google's new policy regarding behavior changes: developer.android.com/about/versions/oreo/android -8.0-changes, i`m trying google it, but I do not find anything deep yet.
can you create a call recording app
Hi Can you also get the name and caller number on this app?
This worked perfectly, thanks so much!
is there a way to answer the call with this?
Thanks!
Hi, how can i detect the number that call me?
try this in the broadcast receiver String phoneNumber = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER)
@@WinHtikeTV , yeah, this part doesn't work!
Thank you for trying!
Do you have this code posted anywhere?
no, you have to rewrite it. that way a person can learn what is happening easily.
Your code won't work if you close your application from background from the recent apps.Please check with Android v9 .
How can I display a notification or an alert box when the call ends ?
Thank you for sharing. Is there a way how to make the app answer the call automatically without any notification?
i need this oode can you share github link plz....
Very helful. I had one doubt will your app display the toast even when call is received and your app is not open, even in foreground?
Tarun Talreja yes
Can you please share the source code on my email id 141100026@nitdelhi.ac.in?
I have written a code but it does not work for API 26.I get the following error : W/BroadcastQueue: Permission Denial: receiving Intent { act=android.intent.action.PHONE_STATE flg=0x1000010 (has extras) }
Even though I have given all the permissions required.
sell this video to google ....
thank you sooooooo much
can i has source code
Code
Does this work with VoIP calls as well? Or I have to use ConnectionService?
Nice tutorial, cannot think of any practical uses for it, but it's still very informative!
you can use this if you wany to start voice recorder when a call is started for example ;)
Hmm, that's interesting, good idea!
Tihomir RAdeff can you tell how to enable speech recogniser when phone is ringing?
Hey, good to find you here. I worked with you on your open weather android app😉😊
Thanks
Does this work even if the app is closed?
yes
if the person turn off de phone i will record instanly
thanks for this tutorial
i try to debug this app in my real phone but noothing happen, i.e. i call to my phone after i give call permission to the app but when calling incoming the app stop to work (crush).
what i need to do for deteting call incoming in real phone?
thanks
Auto Posting קידום עסקים בפייסבוק if you you made everything the same the app should work on real device too.
I dont see different, can you share this code with me please?
nice toturial!
can you please explain me how to block incoming call automaticly
OmG ..was exactly looking for same tutorial...ThankYou so muchhh
God bless u
error after new String[] as ; expected error: array dimension missing
mudit srivastava where in the video is this?
Tihomir RAdeff in the main activity
rewrite everything carefully. as you can see in the video everything works.
hey man, congrats for the tutorial! How to have this code run in an API 26, 27+ with Oreo?
Luigi Go It doesn't run?. Did you try it?
Yes, I am making an application similar to yours, in which the user calls a certain number, and opens my activity, so I also need the call detector, and the permissions. I tested it, it works until API 25, Android Nugget, on Oreo is not working, probably because of Google's new policy regarding behavior changes: developer.android.com/about/versions/oreo/android -8.0-changes, i`m trying google it, but I do not find anything deep yet.
Luigi Go yes, that may be the reason. search online for workarounds
Thank you for this tutorial....
Life saver!
it's perfect
5 views #REZ
Thanks