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

Java Development

Reply
Developer
nikita18
Posts: 144
Registered: ‎08-18-2012
My Device: Blackberry Curve 8520
My Carrier: Vodafone

take screenshot without permission..

Hello everone,

 

I have been stuck on this app for days. My app takes a screenshot of the screen and stores it in the picture library. It works fine on the simulator. On a real device, a popup appears asking for permission to take the screen shot. However, when I give permission by clicking Allow all it does is save a white image.

I have found this thread which says that I should recreate this image again and then save it but it didn't work. Maybe I am doing the recreation wrongly:

 

http://supportforums.blackberry.com/t5/Java-Development/Permissions-when-saving-a-screenshot/td-p/19...

 

 

Please can anyone help me in this.

 

Thanks a lot.

Please use plain text.
Developer
simon_hain
Posts: 16,113
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: take screenshot without permission..

did you set the permissions up front using permissionsmanager?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
mreed
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: take screenshot without permission..

I think by recreate they mean take the screenshot again. I believe the first screenshot after accepting permission is white, then the rest are fine.

Please use plain text.
Developer
nikita18
Posts: 144
Registered: ‎08-18-2012
My Device: Blackberry Curve 8520
My Carrier: Vodafone

Re: take screenshot without permission..

[ Edited ]

Thank you for the reply simon. Yes, I have set the permission:

 

ApplicationPermissions.PERMISSION_RECORDING

 

Please use plain text.