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
Highlighted
Developer
Posts: 188
Registered: ‎07-19-2012
My Device: Z10 Limited Edition and Dev Alpha C
My Carrier: Movistar-Venezuela

Help with QAltimeter and ScreenShot

as I can use the example of cascades of altimeter? since there is no reference in qml. Greetings.

 

https://developer.blackberry.com/cascades/reference/qaltimeterreading.html

 

and the example of Screenshot not leave the path where the image is saved automarticamente, what would?

 

https://developer.blackberry.com/cascades/reference/bb__system__screenshot.html

 

import bb.cascades 1.0
import bb.system 1.2
 
Page {
    attachedObjects: [
        Screenshot {
            id: screenshot
        }
    ]
     
    content: Container {        
        Label {
            id: filenameLabel
        }
        Button {
            id: captureButton
            text: "Capture"
            onClicked: {
                filenameLabel.text = screenshot.captureDisplay( "file:data/screenshot.png" );
            }
        }
    }
     
}

 

 


Follow me in Twitter:

@Marcossit

BBM Channel:

MarcossitDev: C0002C366  

DeviceSuite For BlackBerry 10:

Link to Download DeviceSuite:

Support was successful? Accept as Solution and click on:


Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Help with QAltimeter and ScreenShot

For what it's worth, apparently the Screenshot stuff won't work in this release anyway, because the required permission isn't in place or available to us yet. There's a note about screenshot_grab() (the NDK interface) not working, in the release notes, but I've heard since it's a low-level issue that the Cascades Screenshot class is equally useless for now.

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
Posts: 828
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Rogers

Re: Help with QAltimeter and ScreenShot

If you need screenshot functionality I posted a working sample that has the code needed to save more than 1 shot

Developer
Posts: 188
Registered: ‎07-19-2012
My Device: Z10 Limited Edition and Dev Alpha C
My Carrier: Movistar-Venezuela

Re: Help with QAltimeter and ScreenShot

Thanks proves the example of capture ...

Any idea how to operate the altimeter? not understand much as apis record.


Follow me in Twitter:

@Marcossit

BBM Channel:

MarcossitDev: C0002C366  

DeviceSuite For BlackBerry 10:

Link to Download DeviceSuite:

Support was successful? Accept as Solution and click on:


Retired
Posts: 47
Registered: ‎04-19-2013
My Device: I love them all!
My Carrier: Carriers rock!

Re: Help with QAltimeter and ScreenShot

Just a note that your sample is the equivalent of captureWindow. The original poster was asking about captureDisplay, and as was pointed out, it requires a permission that is currently unavailable in the beta.