Code example for ServiceState

Methods: getOperatorAlphaLong, getOperatorAlphaShort, getOperatorNumeric

0
	      public void onCallStateChanged(int state, String incomingNumber)
	      { 
	         Log.d("CIAO","listener call state: " + state + " "+ new Date());
	      } 
	      public void onServiceStateChanged(ServiceState serviceState) {
	    	setLocalValue(serviceState.getOperatorAlphaLong(), serviceState.getOperatorAlphaShort(),serviceState.getOperatorNumeric());
	    	 
	      } 
	   } 
    @Override 
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        // Set Content in webView 
         
        WebView x = (WebView) this.findViewById(R.id.webview);
        x.loadData(disclaymer, "text/html", "UTF-8");
         
         
        MyPhoneStateListener myPhoneStateListener = new MyPhoneStateListener ();
        TelephonyManager telMgr=(TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE);