Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
3.40/5 (2 votes)
I am new to blackberry 10 & Want to get device info like:

1 IMEI
2 IMSI
3 Device ID
4 PIN Number
5 Device Name etc
Posted
Updated 31-May-13 3:36am
v3
Comments
Leo Chapiro 31-May-13 9:35am    
I think IMSI and PIN refers rather to the SIM card as to the Device ...
AmanArora1987 3-Jun-13 1:37am    
yes but how to retreive it in a code, i want to know that.
Leo Chapiro 3-Jun-13 4:30am    
Unfortunately I don't have any experience with Blackberry, have found this one: http://supportforums.blackberry.com/t5/Native-Development/Example-of-using-deviceinfo-h/td-p/1998711

Example of using deviceinfo.h
Options
‎11-21-2012 05:25 AM

I am trying to get the serial number of my device. I am quite c++ challenged and am struggling with this. Can someone point me to an example of how to call the deviceinfo.h functions. ...

Take a look, HTH

1 solution

For Serial Number:
Include these Header Files:
XML
#include <bb/device/DeviceInfo.hpp>
#include <bps/deviceinfo.h>

and use this code :
C#
qDebug()<<"Serial Number : ";
    qDebug()<<serial_number;
    deviceinfo_identifying_details_t *id_details = NULL;
    qDebug()<<"id_details : ";
    qDebug()<<id_details;
    int rc = deviceinfo_get_identifying_details(&id_details);
    qDebug()<<"RC : ";
    qDebug()<<rc;
    if (BPS_SUCCESS == rc)
    {
        qDebug()<<"IF PART";
        serial_number = deviceinfo_identifying_details_get_serial_number(id_details);
        qDebug()<<serial_number;
//        pin_number    = deviceinfo_identifying_details_get_pin(id_details);
        qDebug()<<deviceinfo_identifying_details_get_pin(id_details);
        deviceinfo_free_identifying_details(&id_details);
    }
    else
    {
        qDebug()<<"ELSE PART";
    }
    qDebug()<<"------------------------";

it will give serial number right but in PIN Number getting -ve value, Help me for this....

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900