Skip to content

Latest commit

 

History

History
 
 

appshot

AppShot - basic screenshot

================================================================ Sometimes you might want to be able to take a programmatic screen shot of you Cascades application. It could for example be that the application creates a screen that is suited for sharing on social network or something like that. This sample shows how this can be achieved.

You will learn how to:

  • Take a snap shot of the current screen and open it in the pictures card

================================================================

======================================================================== Requirements:

BlackBerry 10 Native SDK

======================================================================== Running the example:

  1. From the Sample apps page, download and extract one of the sample applications.
  2. Launch BlackBerry 10 Native SDK, and from the File menu, select Import.
  3. Expand General, and select Existing Projects into Workspace. Click Next.
  4. Browse to the location where you extracted the sample file, and then click OK.
  5. The sample project should display in the Projects section. Click Finish to import the project into your workspace.
  6. In the Project Explorer pane, Right-click the project (for example hellocascades) and select Build Project.
  7. In the Project Explorer pane, Right-click the project (for example hellocascades) and select Run As > BlackBerry C/C++ Application.
  8. The application will now install and launch on your device. If it doesent you might have to set up your environment: http://developer.blackberry.com/cascades/documentation/getting_started/setting_up.html