Android examples for android.telephony:CarrierConfigManager
is Global CDMA
import android.content.Context; import android.os.PersistableBundle; import android.telephony.CarrierConfigManager; public class Main { private static boolean isGlobalCDMA(Context context, int subId, boolean isLteOnCdma) { final CarrierConfigManager carrierConfigMan = (CarrierConfigManager) context .getSystemService(Context.CARRIER_CONFIG_SERVICE); final PersistableBundle carrierConfig = carrierConfigMan .getConfigForSubId(subId);//from w ww. j a v a 2 s. c om return isLteOnCdma && carrierConfig .getBoolean(CarrierConfigManager.KEY_SHOW_CDMA_CHOICES_BOOL); } }