Display alert dialogs, prompt dialogs, login dialogs, file browse dialog file save dialog and context menu
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
- BlackBerry Native SDK for BlackBerry 10.0.9 or later
- One of the following:
- BlackBerry Alpha Device
- BlackBerry Alpha Device Simulator
- From the the Sample apps page, download and extract the sample application.
- Launch the Native SDK.
- On the File menu, click Import.
- Expand General, and select Existing Projects into Workspace. Click Next.
- Browse to the location where you extracted the sample app, and click OK. The sample project should display in the the Projects section.
- Click Finish to import the project into your workspace.
======================================================================== Requirements:
BlackBerry 10 Native SDK Beta
======================================================================== Running the example:
- Download the sample from http://github.com/blackberry.
- Launch BlackBerry 10 Native SDK Beta, and from the File menu, select Import.
- Expand General, and select Existing Projects into Workspace. Click Next.
- Browse to the location where you extracted the sample file, and then click OK.
- The sample project should display in the the Projects section. Click Finish to import the project into your workspace.
- In the Project Explorer pane, Right-click the the project (for example hellocascades) and select Build Project.
- In the Project Explorer pane, Right-click the the project (for example hellocascades) and select Run As > BlackBerry C/C++ Application.
- 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.