Code example for ServiceState

Methods: getRoaming, getState

0
	 * @see ServiceState#STATE_IN_SERVICE 
	 * @see ServiceState#STATE_OUT_OF_SERVICE 
	 * @see ServiceState#STATE_POWER_OFF 
	 */ 
	public void onServiceStateChanged(ServiceState serviceState) {
		if( m_serviceState != serviceState.getState() ) {
			m_serviceState = serviceState.getState();
			m_isRoaming = serviceState.getRoaming();
			Log.d("PP30Lite", "Service State: " + getServiceState());
			sendEventMsg(); 
		} 
	} 
	 
	public void sendEventMsg() { 
		Message msg = m_handler.obtainMessage(); 
        Bundle b = new Bundle(); 
        b.putString("type", "collect");  
        msg.setData(b); 
        m_handler.handleMessage(msg); 
	}