Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Developer
Posts: 231
Registered: ‎05-03-2011
My Device: PlayBook V1 and proud of it :-)
My Carrier: Legs

Re: How to access BlackberryID in an application on playbook

This error is because the AIR runtime on the desktop does not have aqnx.pps.PPSChannel class. You shouldn't get this error run in the simulator or PlayBook.

 

See this blog for a workaround

 

Renuan Workaround for PPS Class if you need this in the desktop.

 

I think it should be qnx-screen.swc to be external.

Keep the Forum productive and useful for all. Click Kudos button if I've helped you. Select Solved to help everyone.

PlayBook qualifying app - Pandoras' Lights
Blog - CoCopia.co.uk Catch me on Twitter cocopia_apps
Contributor
Posts: 19
Registered: ‎06-08-2011
My Device: Playbook
My Carrier: 12345

Re: How to access BlackberryID in an application on playbook

Hi

 

This is the error I am getting now.

 

///////////////////////////////////////////////////////////////////

VerifyError: Error #1014: Class qnx.ui.text::TextInput could not be found.
at runtime::ContentPlayer/loadInitialContent()

at runtime::ContentPlayer/playRawContent()

at runtime::ContentPlayer/playContent()

at runtime::AppRunner/run()

at ADLAppEntry/run()

at global/runtime::ADLEntry()

//////////////////////////////////////////////////////////////////

 

 

 

 

Is it possible for you to give me a sample file?

 

 

Thanks

Developer
Posts: 231
Registered: ‎05-03-2011
My Device: PlayBook V1 and proud of it :-)
My Carrier: Legs

Re: How to access BlackberryID in an application on playbook

Read this thread

 

Desktop Testing Problem

 

As to the sample file, I dont know what it is you are trying to do. You have the code to read the PB Pin.

Keep the Forum productive and useful for all. Click Kudos button if I've helped you. Select Solved to help everyone.

PlayBook qualifying app - Pandoras' Lights
Blog - CoCopia.co.uk Catch me on Twitter cocopia_apps
Highlighted
Contributor
Posts: 19
Registered: ‎06-08-2011
My Device: Playbook
My Carrier: 12345

Re: How to access BlackberryID in an application on playbook

Hi

I am just trying to access the Blackberry ID or the pin entered on my playbook through an application created in flash.

I have created an application with 5 games and need BBID or thr PIN to insert score in the database. I am not asking the user to enter his name when he starts the application. I want to pick up the BBID or PIN directly from the device.

 

I am using blackberry-tablet-sdk-1.0.2 to package my application to .bar file.

 

 

Developer
Posts: 231
Registered: ‎05-03-2011
My Device: PlayBook V1 and proud of it :-)
My Carrier: Legs

Re: How to access BlackberryID in an application on playbook

Ok, wondering why your still having trouble so I setup a test project of my own, and Man did it give me problems.

 

Here's what I had to do.

The qnx-air.swc linking is external, this stops the native methods not allowed error,

blackberry.swc and qnx-screen.swc leave link type as merged into code.

 

use the following commands

 

import qnx.system.Device;

now place this command in your Main Constructor to see what it returns

trace("Device Pin: "+Device.device.pin);

This code works on my simulator and returns a value of

Device Pin: 0x21d42ffe.

If this still doesn't work for you please paste some code here. Smiley Happy

Keep the Forum productive and useful for all. Click Kudos button if I've helped you. Select Solved to help everyone.

PlayBook qualifying app - Pandoras' Lights
Blog - CoCopia.co.uk Catch me on Twitter cocopia_apps
Contributor
Posts: 19
Registered: ‎06-08-2011
My Device: Playbook
My Carrier: 12345

Re: How to access BlackberryID in an application on playbook

Thanks.. It Worked Smiley Happy
Contributor
Posts: 19
Registered: ‎06-08-2011
My Device: Playbook
My Carrier: 12345

Re: How to access BlackberryID in an application on playbook

Hi,

 

That code worked for me to get the device pin, but is there a way to also access the blackberry ID entered on that device.

 

 

Thanks

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: How to access BlackberryID in an application on playbook

As far as we know, there is not an API to get the blackberry ID. You may need to submit a feature request with the BB issues database.
Developer
Posts: 231
Registered: ‎05-03-2011
My Device: PlayBook V1 and proud of it :-)
My Carrier: Legs

Re: How to access BlackberryID in an application on playbook

Try this, it does mean though your user has to log in

 

Renaun - Getting UserID

Keep the Forum productive and useful for all. Click Kudos button if I've helped you. Select Solved to help everyone.

PlayBook qualifying app - Pandoras' Lights
Blog - CoCopia.co.uk Catch me on Twitter cocopia_apps
Contributor
Posts: 19
Registered: ‎06-08-2011
My Device: Playbook
My Carrier: 12345

Re: How to access BlackberryID in an application on playbook

ok..

 

Thanks a lot.