packages\apps\Dialer\src\com\android\dialer\calllog\PhoneAccountUtils.java
public static String getAccountLabel(Context context, PhoneAccountHandle accountHandle) {
PhoneAccount account = getAccountOrNull(context, accountHandle);
String accountId=accountHandle.getId();
int id=SubscriptionManager.getSlotId(Integer.parseInt(accountId));//id=0/1
}Android 5.0判断SIM卡(SIM1还是SIM2)
最新推荐文章于 2021-12-08 17:07:34 发布
本文介绍了一个用于从Android系统的电话账户中获取账户标签的方法。通过使用PhoneAccountHandle对象和Context对象,该方法能够根据账户ID找到对应的电话账户,并进一步获取其标签。
1328

被折叠的 条评论
为什么被折叠?



