Skip to content
This repository
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

..
Octocat-spinner-32 .settings
Octocat-spinner-32 assets
Octocat-spinner-32 src
Octocat-spinner-32 .cproject
Octocat-spinner-32 .project
Octocat-spinner-32 DialogSample.pro
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 bar-descriptor.xml
Octocat-spinner-32 device-assets.xml
Octocat-spinner-32 icon.png
Octocat-spinner-32 readme.txt
README.md

Dialogs

Display alert dialogs, prompt dialogs, login dialogs, file browse dialog file save dialog and context menu

Sample Description:

This sample demonstrates how to open various types of system dialogs provided by the BPS from Cascades.

Alert Dialogs show a title, message and buttons Prompt Dialogs show an input title and buttons Login Dialogs show a customizable login dialog File Browse Dialog and File Save Dialogs are now part of Filepicker Context Menu dialog shows how to display a context menu with buttons and icons

When a dialog is invoked it creates a thread and builds the dialog using the parameters set to the dialog object. The dialog will be displayed until the user clicks on a button.

Feature summary

  • Multiple dialogs

Requirements:

  • BlackBerry Native SDK for BlackBerry 10.0.9 or later
  • One of the following:
    • BlackBerry Alpha Device
    • BlackBerry Alpha Device Simulator

Importing a project into the Native SDK:

  1. From the the Sample apps page, download and extract the sample application.
  2. Launch the Native SDK.
  3. On the File menu, click Import.
  4. Expand General, and select Existing Projects into Workspace. Click Next.
  5. Browse to the location where you extracted the sample app, and click OK. The sample project should display in the the Projects section.
  6. Click Finish to import the project into your workspace.

Requirements:

BlackBerry 10 Native SDK Beta

Running the example:

  1. Download the sample from http://github.com/blackberry.
  2. Launch BlackBerry 10 Native SDK Beta, 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 the Projects section. Click Finish to import the project into your workspace.
  6. In the Project Explorer pane, Right-click the the project (for example hellocascades) and select Build Project.
  7. In the Project Explorer pane, Right-click the 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 not you might have to set up your environment: http://developer.blackberry.com/cascades/documentation/getting_started/setting_up.html

    Disclaimer THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.