private void handleServiceStateChanged(Intent intent) {
// If service just returned, start sending out the queued messages
ServiceState serviceState = ServiceState.newFromBundle(intent.getExtras());
int subscription = intent.getIntExtra(SUBSCRIPTION_KEY, 0);
int prefSubscription = MSimSmsManager.getDefault().getPreferredSmsSubscription();
// if service state is IN_SERVICE & current subscription is same as
// preferred SMS subscription.i.e.as set under MultiSIM Settings,then
// sendFirstQueuedMessage.
if (serviceState.getState() == ServiceState.STATE_IN_SERVICE &&
subscription == prefSubscription) {
sendFirstQueuedMessage();
}
}
SmsReceiverService.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:sms_DualCard
作者:
评论列表
文章目录