List of usage examples for android.telephony CarrierConfigManager KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING
String KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING
To view the source code for android.telephony CarrierConfigManager KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING.
Click Source Link
From source file:com.android.tv.settings.about.AboutFragment.java
/** * Trigger client initiated action (send intent) on system update *///from w ww . j a v a 2s.c o m private void ciActionOnSysUpdate(PersistableBundle b) { String intentStr = b.getString(CarrierConfigManager.KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING); if (!TextUtils.isEmpty(intentStr)) { String extra = b.getString(CarrierConfigManager.KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING); String extraVal = b.getString(CarrierConfigManager.KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING); Intent intent = new Intent(intentStr); if (!TextUtils.isEmpty(extra)) { intent.putExtra(extra, extraVal); } Log.d(TAG, "ciActionOnSysUpdate: broadcasting intent " + intentStr + " with extra " + extra + ", " + extraVal); getActivity().getApplicationContext().sendBroadcast(intent); } }