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: 17
Registered: ‎07-01-2011
My Device: Playbook
My Carrier: DontKnow

Save image/screenshot into "Pictures" app

Hi,

 

Is it possible to programmatically save an image in memory to a folder inside the "Pictures" app? Essentially, I'd like to take a screenshot of my app and save it in such a way that the user can see it by going to "Pictures"->"Camera Pictures" (or perhaps a folder other than "Camera Pictures"). I don't want to ask the user to press the volume keys (I also don't want everything the user sees going into the screenshot... for example, user interface buttons).

 

Thanks in advance Smiley Happy

BlackBerry Development Advisor
Posts: 417
Registered: ‎10-27-2010
My Device: PlayBook

Re: Save image/screenshot into "Pictures" app

You cannot take screenshot of the screen because it is a security issue, you can take screenshot of your own

app by just capturing your own screen buffer and dumping it into image using image libraries. Unfortunately I don't know exact details on how it is done.

Contributor
Posts: 17
Registered: ‎07-01-2011
My Device: Playbook
My Carrier: DontKnow

Re: Save image/screenshot into "Pictures" app

Thanks for the info Smiley Very Happy

 

So, let's say I can save a JPG image file programmatically. In which folder of the filesystem should I save it so it appears under "Pictures" -> "Camera Pictures" ?

 

Contributor
Posts: 17
Registered: ‎07-01-2011
My Device: Playbook
My Carrier: DontKnow

Re: Save image/screenshot into "Pictures" app

[ Edited ]

Ok,  I think I found the path... and hopefully this should work (I'll update once I've tested it):

 

1. Create an image in memory using some sort of image library (Blackberry Tablet SDK does not include any, correct?)

2. Save the image in memory to a file in the file system under "Shared\camera" (i.e. Shared\camera\my_image_001.jpg)

 

BlackBerry Development Advisor
Posts: 417
Registered: ‎10-27-2010
My Device: PlayBook

Re: Save image/screenshot into "Pictures" app

It shoudl have libpng, maybe other please search docs

Highlighted
Developer
Posts: 541
Registered: ‎05-17-2009
My Device: Not Specified

Re: Save image/screenshot into "Pictures" app

1. Create an image in memory using some sort of image library (Blackberry Tablet SDK does not include any, correct?)

 

It looks like you can get the screenshot of your application's screen with screen_read_display() which is in the current API.

 

Scott