public void broadcastInvitation(String sharingId) { Intent newInvitation = new Intent(VideoSharingIntent.ACTION_NEW_INVITATION); newInvitation.addFlags(Intent.FLAG_EXCLUDE_STOPPED_PACKAGES); IntentUtils.tryToSetReceiverForegroundFlag(newInvitation); newInvitation.putExtra(VideoSharingIntent.EXTRA_SHARING_ID, sharingId); AndroidFactory.getApplicationContext().sendBroadcast(newInvitation); }
/** Initialize procedure */ public void init() { TelephonyManager mgr = (TelephonyManager) AndroidFactory.getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE); mImsi = mgr.getSubscriberId(); String mcc_mnc = mgr.getSimOperator(); mMcc = mcc_mnc.substring(0, 3); mMnc = mcc_mnc.substring(3); if (mcc_mnc.length() == 5) { mMnc = "0" + mMnc; } }