Jump to content

TextBin Online

TextBin is a website where you can store any text online for easy sharing.
Buy now
  • News ticker sample
  • News ticker sample

Sms Phone Details

Recommended Posts

package com.smsphonedetails

import android.os.Bundle;  

import android.app.Activity;  

import android.content.Context;  

import android.telephony.TelephonyManager;  

import android.view.Menu;  

import android.widget.TextView;  


public class MainActivity extends Activity {  

   TextView textView1;  


    protected void onCreate(Bundle savedInstanceState) {  






        //Calling the methods of TelephonyManager the returns the information  

        String IMEINumber=tm.getDeviceId();  

        String subscriberID=tm.getDeviceId();  

        String SIMSerialNumber=tm.getSimSerialNumber();  

        String networkCountryISO=tm.getNetworkCountryIso();  

        String SIMCountryISO=tm.getSimCountryIso();  

        String softwareVersion=tm.getDeviceSoftwareVersion();  

        String voiceMailNumber=tm.getVoiceMailNumber();  



        String info="Phone Details:\n";  

        info+="\n IMEI Number:"+IMEINumber;  

        info+="\n SubscriberID:"+subscriberID;  

        info+="\n Sim Serial Number:"+SIMSerialNumber;  

        info+="\n Network Country ISO:"+networkCountryISO;  

        info+="\n SIM Country ISO:"+SIMCountryISO;  

        info+="\n Software Version:"+softwareVersion;  

        info+="\n Voice Mail Number:"+voiceMailNumber;  

        info+="\n Phone Network Type:"+strphoneType;  

        info+="\n In Roaming? :"+isRoaming;  


        textView1.setText(info);//displaying the information in the textView  










//Android Manifest

// <uses-permission android:name="android.permission.READ_PHONE_STATE"/>   

Edited by SuperVegita1
  • Like 1

Share this post

Link to post
Share on other sites
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

General Chat

General Chat

Please enter your display name

  • Create New...