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™ Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 1,006
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

 

Highlighted
Developer
Posts: 1,006
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

Developer
Posts: 1,006
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