本文介绍了如何在Blackberr10中找到设备信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是blackberry 10的新手,希望得到以下设备信息:



1 IMEI

2 IMSI

3设备ID

4密码号码

5设备名称等

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

推荐答案

#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()<<"------------------------";



它会给出正确的序列号,但在PIN码中获取-ve值,帮帮我....



谢谢


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

Thanks


这篇关于如何在Blackberr10中找到设备信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 14:47