11-18 公司bug

来源:互联网 发布:minecraft 编程 编辑:程序博客网 时间:2024/05/29 12:41

 

 

//Alex 初始化 TelephonyManager
  mTelephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);

 //Alex
 
 public  int   GetSimState(){
         int simState = mTelephonyManager.getSimState();
        
         return simState;

 }

 

 

 

ChatContentsAdapter
//Alex
      if(GexinMainActivity.getInstance().GetSimState()==TelephonyManager.SIM_STATE_READY)
       msgState.setEnabled(true);
      else
       msgState.setEnabled(false);