获取黑莓手机格式化的SIM卡号码 [英] Get formatted SIM card number on BlackBerry

查看:192
本文介绍了获取黑莓手机格式化的SIM卡号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序需要获得SIM卡号码。我正在与 SIMCardInfo.getIMSI(),但在某些其他格式。

我的SIM卡号码是89919400002018929130,但我正在逐渐:404940.20.189291.3

我用下面的code:

 尝试
    {
       currentSimNo = GPRSInfo.imeiToString(SIMCardInfo.getIMSI());
    }
    赶上(例外五)
    {    }


解决方案

imeiToString 需要 IMEI 不是 IMSI

In my application I need to get the SIM card number. I am getting that with SIMCardInfo.getIMSI(), but in some other format.

My SIM number is 89919400002018929130, but I am getting: 404940.20.189291.3

I used the following code:

   try 
    {
       currentSimNo = GPRSInfo.imeiToString(SIMCardInfo.getIMSI());
    } 
    catch (Exception e) 
    {

    }

解决方案

The imeiToString takes a IMEI not a IMSI

这篇关于获取黑莓手机格式化的SIM卡号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆