Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Runtime Development

Reply
Developer
rakesh86shankar
Posts: 998
Registered: ‎05-22-2009
My Device: Not Specified
Accepted Solution

How to get IMEI number in BB 10 device?

Hi,

 

I am porting my android app to BB 10,When i use

 

 

m_telephonyManager.getDeviceId();

 

it gives serial number of the device,not IMEI number,Is there any getaround for this.

 

 

Thanks

Rakesh

 

Please use plain text.
Developer
rakesh86shankar
Posts: 998
Registered: ‎05-22-2009
My Device: Not Specified

Re: How to get IMEI number in BB 10 device?

[ Edited ]

I got the information that we cannot get retreive IMEI information of BB 10 device through android runtime.I am looking at the other option also.

 

Is there any way i can use PhoneGap jar file in android app ,by creating a local html and using java script to retreive the IMEI number using Phone Gap using the below concept

http://developer.android.com/guide/webapps/webview.html#BindingJavaScript

Presently ,I tried using javascript below to retrieive IMEI no

 

 <script type="text/javascript" charset="utf-8" src="js/phonegap.js"></script>
</head>
<script type="text/javascript">
    function showAndroidToast(toast) {  
    Android.showToast('kkkkkkk');       
    var idno = device.uuid ;
var string = device.version;
Android.showToast('idno' + string); 
Android.showToast('string ' + idno); 
toast = toast + idno;
    Android.showToast(toast);
    }
</script>

 

I am getting the value of null,I am testing it in BB 10 dev Alpha device.

Is there any other workaround for it?

 

Thanks

Rakesh

Please use plain text.
Developer
rakesh86shankar
Posts: 998
Registered: ‎05-22-2009
My Device: Not Specified

Re: How to get IMEI number in BB 10 device?

Hi,

 

Issue fixed in Blackberry 10.1 versions.IMEI number is retreived from this OS versions.

 

Thanks

Rakesh

Please use plain text.