Click here to Skip to main content
12,403,983 members (67,761 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C++ Mobile Blackberry
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 30-May-13 23:41pm
Updated 31-May-13 3:36am
_duDE_19.5K
v3
Comments
du[DE] 31-May-13 9:35am
   
I think IMSI and PIN refers rather to the SIM card as to the Device ...
amanarora BB 3-Jun-13 1:37am
   
yes but how to retreive it in a code, i want to know that.
du[DE] 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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

For Serial Number:
Include these Header Files:
#include <bb/device/DeviceInfo.hpp>
#include <bps/deviceinfo.h>
and use this code :
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
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 4 Jun 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100