/**
* Obtain a {@link SubscriptionManager} instance associated with specified {@link Context}
*
* @param context Context
* @return {@link SubscriptionManager} associated with specified {@link Context}
* @throws InvalidContextException if {@link SubscriptionManager} can't be obtained
* from specified {@link Context}
*/
@NonNull
@RequiresApi(Build.VERSION_CODES.LOLLIPOP_MR1)
public static SubscriptionManager getSubscriptionManager(@NonNull Context context) {
return validate(context.getSystemService(Context.TELEPHONY_SUBSCRIPTION_SERVICE));
}
ContextUtils.java 文件源码
java
阅读 33
收藏 0
点赞 0
评论 0
项目:android-wheels
作者:
评论列表
文章目录