Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Incoming no is blank

$
0
0

I am using PhoneStateListener to detect calls
Code that I am using is :

 public class PhoneCallDetector : PhoneStateListener
    {
        Context context;

        public PhoneCallDetector(Context cntxt)
        {
            this.context = cntxt;
        }

        public override void OnCallStateChanged(CallState state, string incomingNumber)
        {
        if (state == CallState.Ringing)
                {
                    Toast.MakeText(context, incomingNumber, ToastLength.Long).Show();
                }
    }
}

In lollipop the Incoming no is showing but in Kitkat or Marshmallow the no is always blank.....


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>