1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to find the phone number in android?

Discussion in 'Android Apps & Games' started by aptgopal, Feb 8, 2011.

  1. aptgopal

    aptgopal Newbie
    Thread Starter

    Any one help me to do this .I want to find the mobile number using in the particular android mobile programmatically

    I tried the following
    TelephonyManager tMgr =(TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE);
    String mPhoneNumber = tMgr.getLine1Number();
    It is working fine in Emulator but It is not working in my phone

    How to do that

    Thanks in advance

    1. Download the Forums for Android™ app!



Share This Page