Resources

Dynamics SDK Samples

About Samples

Welcome to code samples for the BlackBerry Dynamics Secure Mobility Platform. Here you can browse code samples and learn how BlackBerry Dynamics Platform APIs can be used in your own applications.

Each sample is fully functioning BlackBerry-secured app. You can browse the source code, the resources and the structure. You can copy-paste the code you need. If you’ve correctly installed the appropriate BlackBerry Dynamics SDK for your platform, you should easily and quickly be able to build and test the project.

Many of the sample applications will be installed on your computer when you install the BlackBerry Dynamics SDK. To download a project, please click on a project link in the left app column. On the resulting page, click on the appropriate platform icon:

Apache HTTP Client

This project contains a complete application that demonstrates how to use the Good Dynamics Secure Communication APIs to access resources that are behind the enterprise firewall. These APIs can be used to securely exchange data between the Good-secured mobile app that’s on the device and an app server that’s behind the firewall. This is enabled by the Good Proxy server, which is part of the Good Dynamics Platform infrastructure, which removes the need for any per-app VPNs or opening up any inbound firewall ports.

Available Projects

App-Specific Policies

This project contains a complete application that demonstrates how to use the Good Dynamics application-specific policy APIs. Application-specific policies, when defined, provide control over specific features of a single application. This in contrast to standard built-in policies, like minimum password length, which apply to all Good-secured apps.

Available Projects

bypassunlock

This sample shows how part of the application user interface can remain accessible after the BlackBerry Dynamics idle time out has expired. This is done by using the Bypass Unlock feature.

Available Projects

Certificate Import App

This project contains a complete application that demonstrates how to use the app-based PKI solution to provide certificates for use by BlackBerry Dynamics.

Available Projects

Core Data

This project contains a complete application that demonstrates how to use the Core Data Incremental Data Store API backed by an encrypted SQLite database. The sample app shows how the Core Data API can be used to securely store a sample set of 20,000 fictional employee details and their office locations.

Available Projects

Crypto API App

This project contains a complete application that demonstrates how to use the Crypto APIs that enable signing and verification of messages or documents, such as PDFs.

Available Projects

Display Events

This project contains a complete application that demonstrates how to use the Good Dynamics Remote Settings API. The app displays events in the Good Dynamics Platform as they happen. Learning about events in the Good Dynamics Platform is helpful when you are just getting familiar with the Good Dynamics Platform.

Available Projects

Greetings Client

This project contains a complete application that demonstrates how to use a service built on the Good Dynamics Shared Services Framework to securely communicate with another Good-secured app. This sample application is intended for use with the Greetings Server sample application that both provides and used the service.

Available Projects

Greetings Server

This project contains a complete application that demonstrates how to implement a service on the Good Dynamics Shared Services Framework. The service enables secure communication between two applications. This sample app, which is a provider of the service, has to be used with the Greetings Client sample app that calls the service.

Keymanager

This app demonstrates how to present a Credential Manager user interface that enables the user to setup, review, and manage user certificates and keys. The user is granted this capability by admin through assignment of User Certificate and User Credential profiles.

Available Projects

Online Presence Service

This project contains a complete application that demonstrates how to use the APIs for the server-based Presence Service to retrieve online presence information for a Lync 2010 or Lync 2013 user. It requires that the Good Enterprise Mobility Server to have been deployed, and configured to provide the Presence Service. So, the GEMS Installation and Configuration Guide and the Presence API specification are good starting points. The app allows addition and deletion of contacts, provides client-side HA/DR and error handling, and supports the Good Notification Protocol. Integration with Good Connect ensures that an IM request launches that app. Presence mapping is based on MSDN documentation. The app is designed for iPads.

Available Projects

Push Channel

This project contains a complete application that demonstrates how to use the Good Dynamics Secure Push APIs, showing how the connection can be controlled, channels are created, and messages are sent in a loopback manner to the client. The Good Dynamics Push Channel framework is a feature used to receive real-time notifications from an application server.

Available Projects

Remote Settings and Database

This project contains a complete application that demonstrates how to use the Good Dynamics Remote Settings and Secure SQL Database APIs. This sample app allows you to configure remote settings in the Good Control for this app. Good Control is the management server for the Good Dynamics Platform. Upon receipt of the new settings, the sample simply stores them in the secure database. Any changes to the settings are also automatically synchronized and stored.

Available Projects

RSS Reader

This project contains a complete application that demonstrates how to use the Good Dynamics secure communication APIs to fetch RSS feeds.

Available Projects

Save Edited File – Client App

This project contains a complete application that demonstrates how to use the Good Dynamics Shared Services Framework to call the Edit File service that’s provided by another app (see Save Edited File – Server App sample project) to save a file edited in this app.

Available Projects

Save Edited File – Server App

This project contains a complete application that demonstrates how to create a provider application that offers the Edit File service as an app-based service. This service can then be used by another app to save an edited file. The Save Edited File – Client App sample project complements this project.

Available Projects

Secure Cut-Copy-Paste

This project contains a complete application that demonstrates the difference between UI text controls in the Good Dynamics Platform (GDTextView, GDEditText, GDAutoCompleteTextView, GDSearchView, GDWebView) and the corresponding default UI text controls in Android. Good Dynamics text controls ensure protection of text data that shared between Good-secured apps via clipboard controls (i.e., cut, copy or paste). Text data that is cut or copied from a source app is encrypted in the clipboard. Prior to being pasted in the destination app, it is decrypted.

Available Projects

Secure File System

This project contains a complete application that demonstrates Good Dynamics secure file system operations such as file and folder operations plus importing files to secure container.

Available Projects

Secure HTTP

This project contains a complete application that demonstrates GDHttpRequestFilter usage: HTTP request to given URIs using GD infrastructure with different options as authentication.

Available Projects

Secure Sockets

This project contains a complete application that demonstrates use of Good Dynamics Sockets to create sockets to connect some given URIs.

Available Projects

Secure SQL Database

This project contains a complete application that demonstrates use of the Good Dynamics Secure SQL Database APIS to add, edit, delete and display contact entries in a secure database. And since the app is built on the Good Dynamics Platform, all data in the database is stored encrypted on the device.

Available Projects

Secure Storage

This project contains a complete application that demonstrates how to use the secure storage APIs, specifically the secure SQL database and secure file systems APIs. As part of the standard security measures in the Good Dynamics Platform, Good- secured apps encrypt files and content that are written to or read from the application’s storage. If you use common, non- Good file managers to work with your files, your file names and contents are unintelligible because they cannot be decrypted/encrypted. This sample app shows you how to use the APIs of the Good Dynamics Platform to read and write those encrypted files securely and with intelligible file names and contents. For more details, read the documentation provided with this download.

Available Projects

Secure Storage Companion Wearable App

This project complements the Secure Storage project for Android. It is used to create a Good-secured app for an Android Wear device. The Good-secured app for the wearable is then paired with the Goods-secured app for the handheld, which is generated via the Secure Storage project for Android. The Good-secured app for the wearable can be used to control the Good-secured app for the handheld and, because the Good Dynamics Platform is the foundation, all communications between apps on the different devices are secured, as is data stored on the wearable.

Available Projects

Server Services

This project contains a complete application that demonstrates how to invoke a Good Dynamics Shared Service that’s hosted by an app server (i.e., a server-based service) for use in a Good-secured app. This sample retrieves the details of the google.timezone.service using getServiceProvidersFor. The sample prompts the user to supply a latitude and longitude and retrieves the corresponding results from Google.

Available Projects

Services Framework

This project contains a complete application that demonstrates server-side and local services discovery.

Available Projects

Shared Services Framework Client

This project contains a complete application that provides several examples of how to use the Good Dynamics Shared Services Framework Client.

Available Projects

Shared Services Framework Server

This project contains a complete application that demonstrates the use of the GDService API, the server-side of Application-Based Services that allows the editing of files received from the Shared Services Framework Client and sends them back as a response.

Available Projects

Skeleton App

This is a skeleton that can be used as a starting point for developing a new Good-secured app.

Available Projects

Swift - RSSReader

This sample shows how BlackBerry Dynamics secure communication could be used to fetch RSS feeds.

Available Projects

Swift - Services-Client

This BlackBerry Dynamics sample application demonstrates how to use the AppKinetics programming interface as a consumer. It is intended for use with the AppKinetics Simple Provider sample.

Available Projects

Swift - Services-Server

This BlackBerry Dynamics sample application demonstrates how to use the AppKinetics programming interface as a provider. It is intended for use with the AppKinetics Simple Consumer sample.

Available Projects

UI Customization

This project contains a complete application that demonstrates how to customize the appearance of the Good Dynamics user interface.

Available Projects

Unit Test

This project contains a complete application that demonstrates how to use all APIs supported in the Good Dynamics Plugin for HTML5.

Available Projects