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

Posts: 27
Registered: ‎12-11-2012
My Device: Blackberry Z10
My Carrier: Viettel

Take a Screenshot without prompt

Can someone please tell me if i can take a screenshot of the whole display without a prompt when use the below library.
i've tried to use screen_read_window() but it just take a screenshot of it's application.
New Contributor
Posts: 9
Registered: ‎05-28-2013
My Device: BlackBerryQ10
My Carrier: Tbaytel

Re: Take a Screenshot without prompt

With Q10 you get a screen shot by pressing both ends of the volume button at the same time.

Posts: 27
Registered: ‎12-11-2012
My Device: Blackberry Z10
My Carrier: Viettel

Re: Take a Screenshot without prompt

I want to take a screenshot programatically
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Take a Screenshot without prompt

Take a look at the App Shot app in samples...



If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Take a Screenshot without prompt

I believe for now there's no API to allow this *without the prompt*. At least, not for third-party apps.

Similarly, as of 10.2 or so, there's no way to set the wallpaper without a little alert going up to notify the user.

Both things are quite annoying and there should be some fine-grained permissions that allow users to allow selected apps to do this unobtrusively. It's the usual battle between a desire for strong security and a desire to let power users do what they want without inconvenience.

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!
Posts: 196
Registered: ‎12-14-2009
My Device: Not Specified

Re: Take a Screenshot without prompt

So is there really no way to take a screenshot programatically? 


Even if the user gave permission when the app was intially installed? What is the point of asking on install then?


Is there a way around this or another permission to put in the xml file other than "use_camera_desktop"?

Posts: 426
Registered: ‎04-10-2011
My Device: Z30

Re: Take a Screenshot without prompt

I'm a power user and would be really uncomfortable if this would be possible without a promt – even with a special permission…

These apps could just take screenshots without me knowing, even when running as a background app…welcome NSA…

Check out my apps in the BlackBerry World
Visit my developer blog alopix.net
BBM Channel: C0047B612
BlackBerry Development Advisor
Posts: 683
Registered: ‎11-29-2011
My Device: PRIV
My Carrier: Rogers

Re: Take a Screenshot without prompt

[ Edited ]

I wrote the screenshot feature.

You are not allowed to bypass the screenshot prompt for security reasons.

You are free to screenshot your own app using the screen_read_window() API.

Also, for the record, the screenshot is captured before the prompt appears, so if it's timing you're concerned about, that's not an issue.