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

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 19
Registered: ‎06-21-2012
My Device: z10
My Carrier: Bell

How to lock off BB10 device in C

I posted a same question few hours ago, but no one answer me,

I am here to repost it again.
What I try to do is an app that capture users action, when one certain action happen, the screen is password locked.

For example, user pressed one of  volume key, and its locked. What function should i use for this locking? Thank you.

Highlighted
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: How to lock off BB10 device in C

If you posted it only a few hours ago, I'm afraid you're being impatient. Most of the people here answering are volunteers, just other developers who choose to share their time trying to assist others. Expecting very fast replies (less than a day or two) isn't wise...

As for the question, I'm not aware of any API that would let you do that, so I believe the answer is "you cannot". At least for now. If you need this, consider filing a "feature request" in the Developer Issue Tracker, a link to which you can find at the bottom of http://developer.blackberry.com

(If your original query was in another thread, would you mind posting a link to this thread, in that thread, so that people won't try to answer the same thing in two different places? Thanks!)

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!