Detecting phone calls in Android Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ม.ค. 2025

ความคิดเห็น • 47

  • @Tvvtvyb
    @Tvvtvyb ปีที่แล้ว +1

    can you create a call recording app

  • @rj-ck6fu
    @rj-ck6fu 2 ปีที่แล้ว

    Hi Can you also get the name and caller number on this app?

  • @elgracko
    @elgracko 2 ปีที่แล้ว

    This worked perfectly, thanks so much!
    is there a way to answer the call with this?
    Thanks!

  • @משהאלירן
    @משהאלירן 6 ปีที่แล้ว +1

    Hi, how can i detect the number that call me?

    • @TihomirRAdeff
      @TihomirRAdeff  6 ปีที่แล้ว +2

      try this in the broadcast receiver String phoneNumber = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER)

    • @elgracko
      @elgracko 2 ปีที่แล้ว

      @@WinHtikeTV , yeah, this part doesn't work!
      Thank you for trying!

  • @JWSmythe
    @JWSmythe 5 ปีที่แล้ว

    Do you have this code posted anywhere?

    • @TihomirRAdeff
      @TihomirRAdeff  5 ปีที่แล้ว +1

      no, you have to rewrite it. that way a person can learn what is happening easily.

  • @srinivasv7476
    @srinivasv7476 4 ปีที่แล้ว

    Your code won't work if you close your application from background from the recent apps.Please check with Android v9 .

  • @nisargpatel6574
    @nisargpatel6574 4 ปีที่แล้ว

    How can I display a notification or an alert box when the call ends ?

  • @wilfredogr
    @wilfredogr 4 ปีที่แล้ว +1

    Thank you for sharing. Is there a way how to make the app answer the call automatically without any notification?

  • @moviespk7439
    @moviespk7439 4 ปีที่แล้ว

    i need this oode can you share github link plz....

  • @taruntalreja7432
    @taruntalreja7432 6 ปีที่แล้ว

    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?

    • @TihomirRAdeff
      @TihomirRAdeff  6 ปีที่แล้ว

      Tarun Talreja yes

    • @taruntalreja7432
      @taruntalreja7432 6 ปีที่แล้ว

      Can you please share the source code on my email id 141100026@nitdelhi.ac.in?

    • @taruntalreja7432
      @taruntalreja7432 6 ปีที่แล้ว

      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.

  • @mohammadmahdialiakbaryan3175
    @mohammadmahdialiakbaryan3175 4 ปีที่แล้ว +2

    sell this video to google ....
    thank you sooooooo much

  • @agentstona
    @agentstona 4 ปีที่แล้ว

    can i has source code

  • @sultanabubakar618
    @sultanabubakar618 4 ปีที่แล้ว

    Code

  • @HarunBajrektarevic
    @HarunBajrektarevic 5 ปีที่แล้ว

    Does this work with VoIP calls as well? Or I have to use ConnectionService?

  • @ardovich
    @ardovich 8 ปีที่แล้ว

    Nice tutorial, cannot think of any practical uses for it, but it's still very informative!

    • @TihomirRAdeff
      @TihomirRAdeff  8 ปีที่แล้ว +1

      you can use this if you wany to start voice recorder when a call is started for example ;)

    • @ardovich
      @ardovich 8 ปีที่แล้ว

      Hmm, that's interesting, good idea!

    • @jahnavireddy5127
      @jahnavireddy5127 7 ปีที่แล้ว

      Tihomir RAdeff can you tell how to enable speech recogniser when phone is ringing?

    • @jayantkapila1794
      @jayantkapila1794 4 ปีที่แล้ว

      Hey, good to find you here. I worked with you on your open weather android app😉😊

  • @tahirdevlog2047
    @tahirdevlog2047 6 ปีที่แล้ว +1

    Thanks

  • @versatileunit1084
    @versatileunit1084 6 ปีที่แล้ว

    Does this work even if the app is closed?

  • @luismanuelmarquezrodriguez7364
    @luismanuelmarquezrodriguez7364 4 ปีที่แล้ว

    if the person turn off de phone i will record instanly

  • @autoposting9844
    @autoposting9844 6 ปีที่แล้ว

    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

    • @TihomirRAdeff
      @TihomirRAdeff  6 ปีที่แล้ว

      Auto Posting קידום עסקים בפייסבוק if you you made everything the same the app should work on real device too.

    • @autoposting9844
      @autoposting9844 6 ปีที่แล้ว

      I dont see different, can you share this code with me please?

  • @yuiyuiyui555
    @yuiyuiyui555 6 ปีที่แล้ว

    nice toturial!
    can you please explain me how to block incoming call automaticly

  • @dinesh.singh.negiii
    @dinesh.singh.negiii 7 ปีที่แล้ว

    OmG ..was exactly looking for same tutorial...ThankYou so muchhh
    God bless u

  • @muditsrivastava13
    @muditsrivastava13 7 ปีที่แล้ว

    error after new String[] as ; expected error: array dimension missing

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      mudit srivastava where in the video is this?

    • @muditsrivastava13
      @muditsrivastava13 7 ปีที่แล้ว

      Tihomir RAdeff in the main activity

    • @TihomirRAdeff
      @TihomirRAdeff  7 ปีที่แล้ว

      rewrite everything carefully. as you can see in the video everything works.

  • @luizorso3576
    @luizorso3576 6 ปีที่แล้ว

    hey man, congrats for the tutorial! How to have this code run in an API 26, 27+ with Oreo?

    • @TihomirRAdeff
      @TihomirRAdeff  6 ปีที่แล้ว

      Luigi Go It doesn't run?. Did you try it?

    • @luizorso3576
      @luizorso3576 6 ปีที่แล้ว

      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.

    • @TihomirRAdeff
      @TihomirRAdeff  6 ปีที่แล้ว

      Luigi Go yes, that may be the reason. search online for workarounds

  • @ShauryVerma
    @ShauryVerma 6 ปีที่แล้ว +1

    Thank you for this tutorial....

  • @cosminaasofiei7286
    @cosminaasofiei7286 8 ปีที่แล้ว +1

    Life saver!

  • @diviercadavid9345
    @diviercadavid9345 6 ปีที่แล้ว

    it's perfect

  • @batuhanaydogan3803
    @batuhanaydogan3803 8 ปีที่แล้ว

    5 views #REZ

  • @vinigt
    @vinigt 4 ปีที่แล้ว +1

    Thanks