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.
12-08-2008 04:58 AM
I am capturing the screen shot of the device screen as a bitmap data. Can i convert it to byte array?
Please help me out through this.
Thanks in advance
Solved! Go to Solution.
12-08-2008 05:45 AM
12-08-2008 07:06 AM
Thanks for your immediate reply.
I am also trying this way to save the image as .bmp in device memory. i can able to save it, But i am not able to view this screen.bmp.
what is mistake i have done in this code. please help me out through this.
DataBuffer db = new DataBuffer();
String url = "file:///store/home/user/screenCapture/screen.bmp";
width = Display.getWidth();
height = Display.getHeight();
Bitmap image = new Bitmap(width, height);
Display.screenshot(image, 0, 0, width, height);
int rgbdata = new int[width*height];
image.getARGB(rgbdata, 0, width, 0, 0, width, height);
for (int i = 0; i < (width*height); i++)
ba = db.getArray();
fconn = (FileConnection)Connector.open(url , Connector.READ_WRITE);
o = fconn.openOutputStream();
System.out.println("Exception in FileConnection : " + ee);
System.out.println("Could not close File Connection : " + e);
Thanks in advance
12-08-2008 10:35 AM