Is it possible to get the PIN of the device?

Hello world

Is it possible to get a PIN device programmatically in C++ of Cascades? I search on this forum and find that this thread is talk about it, but his response cannot help me. My code is here.

TestGetPin::TestGetPin(bb::cascades::Application *app)
: QObject(app)
{
    // create scene document from main.qml asset
    // set parent to created document to ensure it exists for the whole application lifetime
    QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);

    // create root object for the UI
    AbstractPane *root = qml->createRootObject();
    // set created root object as a scene
    app->setScene(root);

    getDevicePIN();
}

QString TestGetPin::getDevicePIN()
{
    QString pin;
    deviceinfo_identifying_details_t *deviceDetails;
    if(deviceinfo_get_identifying_details(&deviceDetails) == BPS_SUCCESS) {
        int pinValue = deviceinfo_identifying_details_get_pin(deviceDetails);
        pin = QString::number(pinValue, 16);
        deviceinfo_free_identifying_details(&deviceDetails);
    }
    qDebug() << "pin: "+pin;
    return pin;
}

But the console print an empty value (only "pin:" ' ").

If anyone knows how to get a device PIN completely. Could you post your complete code example, please? I will be grateful for your kindness.

MAZ

deviceinfo_identifying_details_t** deviceinfo_identifying_details = new deviceinfo_identifying_details_t*;
int deviceinfo_get_identifying_details_result = deviceinfo_get_identifying_details(deviceinfo_identifying_details);
if (deviceinfo_get_identifying_details_result != BPS_SUCCESS) {
    deviceinfo_free_identifying_details(deviceinfo_identifying_details);
    delete deviceinfo_identifying_details;
    return;
}
int pin = deviceinfo_identifying_details_get_pin(*deviceinfo_identifying_details);
QString pinHex = QString::number(pin, 16);
qDebug() << "pinHex: " << pinHex;

This code should do :-)

Tags: BlackBerry Developers

Similar Questions

  • How to get the device Pin code?

    Is Hello possible to get the BB device PIN in Android? Something similar to DeviceInfo.getDeviceid ()?

    Finally, I fixed all my problems.

    I had errors: TOO_MANY_REGISTRATIONS and SERVICE_NOT_AVAILABLE

    TOO_MANY_REGISTRATIONS is set by the phone factory reset. I seems that recording is not completely cleaned when I delete applications and restart the phone. Is there a solution to this? Some cleaning functions, I have not found in the software?

    SERVICE_NOT_AVAILABLE was inside the BlackBerry Simulator ever on the phone.

    Download the DevicePin:

    Use this 'Tutorial' https://developer.blackberry.com/developer/android/apisupport/creating_push-enabled_android_apps.htm... But download the GCM.jar with the Manager software development kit. To do this click "Obsolate" below and you will find the 'Google Cloud messaging for Android Library'. Put it in your make libs folder right click-> Add as library and put "compile files('libs/gcm.jar')' in your build.gradle

    If you now use the following code, you get the devicepin:

    GCMRegistrar.checkDevice(this);GCMRegistrar.checkManifest(this);GCMRegistrar.register(this, SENDER_ID); String regId = GCMRegistrar.getRegistrationId(this);
    
  • STOR. E TV can play some formats - is it possible to get the firmware update?

    Is it possible to get the update of firmware for STOR. E TV, because this product cannot read many formats.
    I woud would better update of firmware for video - AVI (Xvid, AVC, MPEG1/2/4), MPG/MPEG, VOB, MKV (h.264, x.264, AVC, MPEG1/2/4, VC - 1), TS/TP/M2T (MPEG1/2/4, AVC, VC-1), MP4/MOV (MPEG4, h.264), M2TS, WMV9.

    Can someone REPAIR THIS TOSHIBA in the FUTURE?

    Hello

    It would be always great if a device would be supports all possible formats
    Allows how such as firmware updates or similar would be released
    Who knows what guys are going to do in the future, we'll see.

  • Qosmio G30-163: is it possible to get the HDMI by component

    Hello

    It seems that I'll be stuck with my Qosmio back to its own screen whenever I turn off my LCD TV. So what to do?
    I have a box of multiple component entry from another manufacturer. Is it possible to get the HDMI / component?

    While I listen to my signal through that?
    The only other option is for me to leave my TV in all of time...

    Hello

    Hmm, to my knowledge the HDMI / component is not possible.
    The HDMI-DVI adapter is known to me. Also the "cable DVI-component.

    In any case, I don't think that it is a large and serious issue. You can use the FN + F5 combination to toggle the display if the image switches to the internal display of the laptop!

    Best regards

    Goodbye ;)

  • Is it possible to get the RAID on model T?

    Is it possible to get the RAID on model T? For example if I have a RAID between the mSata SSD and HARD drive?

    T series does not support hardware RAID.

  • Is it possible to get the details of the file (for example the subject and comments) off the screen and to an Excel file or a text file without having to retype this information

    Is it possible to get the details of the file (for example the subject and comments) off the screen and to an Excel file or a text file without having to retype this information

    * original title - file details *.

    Hello

    Could you explain what is exactly? What do you mean by off the screen?

    According to my way of thinking, you want to export the file details of all your files on your HARD drive to an excel file or a txt file. If I'm right in this case, it is not possible to export the details of each & every file in the excel sheet.

  • My laptop has been out of service for Windows 10 preview and free offer, but now work. Is it possible to get the upgrade for Windows 10 free?

    My laptop has been out of service for Windows 10 preview and free offer, but now work. Is it possible to get the upgrade for Windows 10 free?

    Hello

    You buy Windows 10, as there is no free upgrade to Vista 10.

    https://www.Yahoo.com/tech/s/Microsoft-just-confirmed-Windows-10-pricing-everything-know-114542550.html

    Microsoft on Monday said CNET Windows 10 will cost just as much as its predecessor. This means price for Windows 10 will run anywhere from $110 for Windows 10 Home package at $199 for Windows 10 Pro edition. In addition a Pack Pro 10 will allow users upgrade Home Pro for $99.

    http://www.CNET.com/news/Microsoft-prices-single-Windows-10-licenses-at-119-for-home-199-for-Pro/

    How to buy Windows 10:

    http://www.microsoftstore.com/store/msusa/en_US/cat/Windows/CategoryID.70036700

    But first make sure that you have the correct configuration and your computer manufacturer provides the right drivers for 10.

    https://www.Microsoft.com/en-us/Windows/Windows-10-specifications#sysreqs

    " System requirements Windows 10"

    https://www.Thurrott.com/Windows/Windows-10/3884/Windows-10-system-requirements

    Microsoft deploys Windows 10 available as free upgrade to Windows 7 features, Windows and Windows Phone 8.1 8.1 qualified. It will be available from July 29, 2015

    "FAQ Windows 10.

    http://www.Microsoft.com/en-us/Windows/Windows-10-FAQ

    See you soon.

  • Is it still possible to get the 64-bit Windows Vista support?

    Hello!

    Well, I have a copy to authentic detail, under license of Windows Vista Edition Home Premium. He put 32 bit media. But at the time when Vista comes out, I could order the 64-bit Vista Home Premium support which I use today with the same license key that came on the parcel.
    About a year ago I bought the Windows Vista Express upgrade, which is valid for a Home Premium to Ultimate upgrade. But the disk is 32-bit only! So, I was wondering if it is still possible to get the 64-bit separately, support only this time, for the edition of Vista Ultimate? I ask this question because I would like to upgrade to Vista Ultimate, but still run on 64-bit, since I can't spend 64-bit Home Premium to Ultimate 32 - bit.
    I know that it may be too late now, given the fact that Windows 7 is already out and Windows 8 is in its phase of consumer preview now. But I am not really interested in upgrading to one of them at this stage. All I really want is just to upgrade to Vista Ultimate, but I need the 64-bit support, since I already have the license key.
    Maybe that Microsoft may allow me to download an ISO image of the Vista Ultimate 64-bit? That would be good enough for me, I don't care for the physical disc, it is not really necessary. I could get some pirate site or something like that, since I already own not one but two licenses, but I don't want that.
    Thanks in advance!

    The disks are probably non-destinee resale and this may explain the color.

    The Express Upgrade product key is specific to an upgrade from Home Premium to Ultimate.  The product key with the expedition is probably a full license key.

    > By 'Matrix Vista upgrade', you mean upgrading one bit-version to the other, like 64-bit to 32-bit or 32-64, right?

    N ° upgrade matrix tells you if an upgrade installation is allowed or a custom installation is required when moving from one edition of Windows to another.

    > Also, if I use a key Vista Home Premium that I have today to install Home Premium and then upgrade to Vista Ultimate, what happenes to my old key? The old key become invalid/replaced by the new key that I got the update? I mean where I want to go back to the old edition, I've had to go back to Vista Home Premium, I reuse this old key?

    You can use the old key to return to the old edition.  However, you can not use the key to install the old edition on a different computer.  The old key is bound to the key to upgrade.

    > "" If a user is running a 32-bit version of Windows, a user can only be upgraded to another 32-bit version: upgrade from 32 bit to 64 bit requires a clean installation. ""

    Now you are confusing a "install update" with an 'upgrade license '.  A retail upgrade license is valid to move from a 32-bit edition to a 64-bit edition, but an upgrade installation is not allowed and a custom installation is required (due to the change in the number of bits of the installation).

     
    > And now Microsoft will probably speed up the versions of Windows, with new versions coming out every two years or more, or has done.
     
    Not true.  Microsoft has been on a cycle of three years for a long time.  There is no speed upward.  Vista has been delayed for two years, when Microsoft declared a moratorium until security problems in Windows have been fixed (XP SP2 was the result).
     
    > I don't know about Windows 7. I don't know if I'll get it or wait for Windows 8. I hear a lot of misfortunes for Windows 7
     
    I don't know where you got this info.  Windows 7 is much better than Vista or XP.  Vista is the one that is panned by critics as a real dog.  Try Windows 7 and you will never look back.
     
  • Is it possible to get the activation code of the older PC so that I can use it in my class?

    Original title: Activation of Windows 8.

    If there is some time I had windows 8 pro to use in my construction of future games. Not knowing I could install it on 1 computer (thought it would be at least 2) I installed it as a test on my desktop PC previos where it has not yet run properly cause it was an older model (and if you haven't used since then, cause I have a laptop with Windows7). But now my PC gaming is finished and I suddenly find I could activate only on 1 PC.

    So my question is. Is it possible to get the activation code of the older PCs (that I use even more, maybe even remove it) so that I can use it in my class? Or that the activation code and the money just went in the toilet?
    I could install Windows 7 to 2 different PC-s(didn't try more cause there was no need) with no problems and it wasen can't pack family, why is Windows 8 different? Sometimes errors occur.
    Ask cause I went all on buy the parts, I have no money to buy a new copy of windows 8.
    Awayting for your answers.
    Thank you
    Edit! Maybe I'm a solution. Going to try it out after I return to work.
    It's the solution

    "I have Windows 8/8 Pro is installed on my PC." If I replace with another PC, can I install my copy of Windows 8 on my new PC until I remove it from the other? »

    Yes. The highest point is the one you mentioned: you must remove Windows 8 from your old computer before you activate on the new. In other words, you can have your copy of Windows 8 or Windows 8 Pro running on a single computer at a time.

    Another thing to keep in mind is that if you have installed an upgrade copy under license of Windows 8 on a computer and then you want to use it on another computer, the same 'upgrade' rules apply: you must have a previous version of Windows on the computer before you install Windows 8. You can ignore this rule, if you started with Windows 8.1

    Important: You can't "move" Windows 8 or Windows 8 Pro on another computer if your computer is pre-installed with Windows 8. Your copy of Windows 8 is what OEM licensed which means that you are allowed to use Windows 8 on the computer on which he came already installed on.

    "How many times can I reinstall Windows 8 on another computer? Assuming I follow the rule 'uninstall old installation', peux I keep installing Windows 8 on different computers? »

    There is no limit to the number of computers that you reinstall Windows 8 on as long as you follow the rules, that I discussed in the last question.
     

    Hi NeemeK,

    We appreciate the research you have done to find more information on this issue. The information you found were correct.

    OEM product key can only be used with the computer on which it is installed on.

    When the operating system is not active (uninstalled) in the old computer, you can install it on the new computer. This applies to any number of computers you use.

    If you get any errors, you can perform the activation of the phone.

    http://support.Microsoft.com/kb/950929/en-us

    Hope that the information provided is useful. Do not respond if you need more help.

  • Is it possible to get the length to swipe distance?

    Hello

    Is it possible to get the length to swipe distance?

    I use Actionscript3 in AnimateCC.

    And I use the event: TransformGestureEven to drag the event.

    (x distance only)

    Oh... I don't care?

    with touchpoint, you can, but I'm not using a gestureevent for this.  If you must use sign language events in other parts of your application, you can try mousedown and mouseup.

  • Is it possible to get the name of the tool selected from a script?

    Hello

    Is it possible to get the name of the tool currently selected from a script?

    I found this:

    https://forums.adobe.com/thread/579195

    https://forums.adobe.com/thread/2161923

    But these works in Photoshop... So, it is possible to get the name of the tool currently selected in InDesign? Is there a universal method that will work in other applications?

    I think that there is a toolBoxTools, app.toolBoxTools...

    P.

  • Is it possible to get the query Details of the old run from oracle?

    Is it possible to get the query Details of the old run from oracle? I mean, I wanted to know the details of a request executed work, I know the time taken by the query to run? Is it possible to know?

    Yes, it is possible to obtain, provided you use enterprise edition version + additional license *. A few tables to get information of are:

    dba_hist_sqltext

    dba_hist_sqlstat

    dba_hist_snapshot

    dba_hist_sql_plan

    dba_hist_active_sess_history

  • Is it possible to get the number of execution of workflow on a cluster of servers Orchestrator / via REST?

    Is it possible to get the number of running workflows on a cluster of servers Orchestrator / through REST? Ideally without checking the status of all executions for each workflow.

    We lack 5.5.2 but would be interested to know if this is a feature available in more recent versions also.

    Hello

    Endpoint following REST will return all executions whose state is "ongoing". In the returned body, the top-level element has an attribute 'total' with the number of items returned.

    https://vcohost:8281 / vco/api/catalog/system/WorkflowExecution? conditions = State = running

  • Is it possible to get the currently selected clipitem?

    Heya folk from Adobe,

    Is it possible to get the clipItem currently selected in the active sequence, something like this:

    app.enableQE ();

    project var = qe.project;

    Project.init)

    curSeq = project.getActiveSequence ();

    curSeq.getSelected () # does not exist, I'm looking for a way to do this

    It is a high priority for me.

    Thank you!

    Raphael

    I appreciate your optimism about what is in the API, but it only no concept of selection (other than, 'what sequence is currently active").

    I'll add your vote to the feature request (already very popular), "to provide current information of project selection and sequence.

  • Is it possible to get the layer, layerset and layer with status layerset...!

    Hello world!

    Is it possible to get the layer, layerset and layer with the status layerset. Because I met a big problem out of it.

    I have a single PS document which is contain the collection of layer, layer with layer games collection. I need apply the function for each layer and layers and each layer games with of layerset.

    I also tried a code, but its error getting. Please help me out of this code...

    -yajiv

    #target photoshop

    app.bringToFront ();

    level of $= 2;

    var app.activeDocument = docRef;

    Journal of the var ="";

    var x = 0;

    var n = number (docRef.layers.length) - 1;

    for (i = 0; i < n; i ++) {}

    var tm = String (docRef.layers [i]);

    var isLayer = tm.lastIndexOf ("ArtLayer");

    var isLayerSet = tm.lastIndexOf ("LayerSet");

    {if(isLayer!=-1)}

    Check_LayerStructure (DocRef.Layers [i], 'Layer');

    }

    {if(isLayerSet!=-1)}

    Check_LayerStructure (DocRef.layerSets, "LayerSets");

    x = x + 1;

    }

    }

    function Check_LayerStructure (objLayer, objflag, x) {------}

    {if(objflag=="Layer")}

    LayetStructure (objLayer, objLayer.name, BlendMode.NORMAL, 100, 100, 0, true, 'Layer');

    }

    else {if(objflag=="LayerSets")

    LayetStructure (objLayer [x] objLayer [x] .name, BlendMode.PASSTHROUGH, 100, 100, 1, true, 'together');

    m = Number (objLayer [x] .layers. Length)

    for (j = 0; j < m; j ++) {}

    var tm = String (objLayer [x] .layers [j]);

    var isLayer = tm.lastIndexOf ("ArtLayer");

    var isLayerSet = tm.lastIndexOf ("LayerSet");

    {if(isLayer!=-1)}

    Check_LayerStructure (objLayer [x]. Layers [j], 'Layer');

    }

    {if(isLayerSet!=-1)}

    Check_LayerStructure (objLayer [x] .layerSets, "LayerSets", x);

    }

    } / / Loop Layerset

    } / / I loop For

    } //Function loop

    function LayetStructure(layerRef,L,bMode,Opt,fillOpt,S,layVisible,Lref) {}

    {if(layerRef.BlendMode!=bMode)}

    If (confirm (L + Lref + "belend mode was bad...!)) \n"+"do you want to change...? »)) {

    layerRef.blendMode = bMode;

    Journal = Journal + "-" + L + Lref + "belend mode has been changed...! \n\n ";

    e = 1;

    }

    }

    {if(layerRef.Opacity!=opt)}

    If (confirm (L + Lref + ' opacity has been "+ Math.round (layerRef.opacity) +"%...! ")) \n"+"do you want to change...? »)) {

    layerRef.opacity = Opt;

    Journal = Journal + "-" + L + Lref + ' opacity was changed to 100...! \n\n ";

    e = 1;

    }

    }

    If (layerRef.fillOpacity! = fillOpt & & S == 0) {}

    If (confirm (L + Lref + ' Fill has been "+ Math.round (layerRef.fillOpacity) +"%...! ")) \n"+"do you want to change...? »)) {

    layerRef.fillOpacity = fillOpt;

    Journal = Journal + "-" + L + Lref + ' fill has been changed to 100...! \n\n ";

    e = 1;

    }

    }

    {if(layerRef.visible!=layVisible)}

    If (L + Lref + ' left eye...! ") \n"+"do you want to change...? ») {

    layerRef.visible = layVisible;

    Journal = Journal + "-" + L + Lref + ' eye was turn on...! \n\n ";

    e = 1;

    }

    }

    }

    Code of responsible for the action would naturally faster, but if you should be more comfortable with the DOM code, it could be useful to you.

    #target photoshop

    var theLayers = collectLayers (app.activeDocument, []);

    Alert (theLayers.join ("\n"));

    function to collect all the layers.

    function collectLayers (theParent, allLayers) {}

    If (! allLayers) {var allLayers = new Array}

    else {};

    the number of var theParent.layers.length = - 1;

    for (var m = number; m > = 0; m-) {}

    var theLayer = theParent.layers [m];

    apply the function of games of layers;

    If (theLayer.typename == "ArtLayer") {}

    allLayers.push ([theLayer, theLayer.blendMode, theLayer.opacity, theLayer.fillOpacity])

    }

    else {}

    allLayers = (collectLayers (theLayer, allLayers))

    This line includes layer groups;

    allLayers.push ([theLayer, theLayer.blendMode, theLayer.opacity, theLayer.fillOpacity]);

    }

    };

    return allLayers

    };

Maybe you are looking for