hi all,

I checked with one code like

  String ts = Context.TELEPHONY_SERVICE;

        TelephonyManager telephonyManager = (TelephonyManager)
getSystemService(ts);


        Toast.makeText(this, "Phone
no:"+telephonyManager.getLine1Number(), Toast.LENGTH_SHORT).show();

its showing the number in the emulator, but when ran on the device its
giving null..

thanks in advance

Krishna.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to