Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ 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 31-May-13 0:41am
Edited 31-May-13 4:36am
_duDE_8.1K
v3
Comments
du[DE] at 31-May-13 9:35am
   
I think IMSI and PIN refers rather to the SIM card as to the Device ...
amanarora BB at 3-Jun-13 1:37am
   
yes but how to retreive it in a code, i want to know that.
du[DE] at 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
0 Richard MacCutchan 269
1 Aajmot Sk 252
2 Marcin Kozub 235
3 Sergey Alexandrovich Kryukov 185
4 Praneet Nadkar 167
0 OriginalGriff 7,913
1 Sergey Alexandrovich Kryukov 7,232
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,865


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 4 Jun 2013
Copyright © CodeProject, 1999-2014
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