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

Reply
Developer
dridk
Posts: 91
Registered: ‎09-25-2012
My Device: bb10 alpha
Accepted Solution

Take a screenshot from blackberry 10 device

Is there an application somewhere to take a screenshot of the current view from my device ? 

a lover of Qt
Developer
thubalek
Posts: 323
Registered: ‎10-01-2012
My Device: Dev Alpha C, Playbook 32 GB

Re: Take a screenshot from blackberry 10 device

It needs to be somehow possible as I found screenshots in Images folder. But I have no idea how it happened.

--------------------------------------------------------------------------------------------
-- My Blackberry 10 app at http://blackberry.hubalek.net
-- My Android apps at http://android.hubalek.net
Developer
dridk
Posts: 91
Registered: ‎09-25-2012
My Device: bb10 alpha

Re: Take a screenshot from blackberry 10 device

Lol! This is a kind of magic !
a lover of Qt
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: Take a screenshot from blackberry 10 device

Press the volume Up and Down buttons simultaneously. If you have the volume itself turned up enough, you'll hear a "camera shutter" sound, and a screenshot in PNG format will be added to the camera folder.

There's no way yet to do this programmatically except within your app itself, and I'm not sure even that's supported right now with any API in Cascades.

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!
Developer
dridk
Posts: 91
Registered: ‎09-25-2012
My Device: bb10 alpha

Re: Take a screenshot from blackberry 10 device

Thanks! It works ! 

 

Qt provide a function to grab a screenshot. 

http://doc.qt.digia.com/qt/qpixmap.html#grabWindow

 

I already try it, but it doesn't work. I have no idea How to get WId , and even I m not sure it will works

a lover of Qt