Skip Navigation

Implement the
BlackBerry Dynamics Launcher

You have the option to implement the
BlackBerry Dynamics Launcher
, an intuitive front-end UI that makes it easy for device users to access and modify settings for
BlackBerry Dynamics
apps. For more information, see the documentation for the BlackBerry Dynamics Launcher Framework.
To implement the
BlackBerry Dynamics Launcher
, you add the
BlackBerry Dynamics Launcher
button to an activity and include its authentication logic in the appropriate place in your app.
  1. Download the
    BlackBerry Dynamics Launcher
    Bindings for .NET software from BlackBerry Developer Downloads.
  2. In your IDE, load the NuGet binding packages into the desired projects. For each project, right-click
    Dependencies
    and click
    Manage NuGet Packages...
    to reference the Launcher binding. For more information, see Load bindings for a new project.
  3. In your app, include the package
    Using Com.Good.Launcher;
    .
  4. Add the
    BlackBerry Dynamics Launcher
    to the activity that you want it to appear on. The
    BlackBerry Dynamics Launcher
    can be initialized using either an inclusive or exclusive list of activities. If an inclusive list is used, the
    BlackBerry Dynamics Launcher
    is shown only on the included activities.
    In this example, the
    BlackBerry Dynamics Launcher
    is only added to the main activity:
    List includedActivities = new List(); includedActivities.Add(Java.Lang.Class.FromType(typeof(MainActivity))); LauncherButton.InitForapp(this, includedActivities, LauncherButton.ActivitiesTargetingMethod.Inclusive);
  5. Add the following authorization code to the appropriate place in your app that authenticates users. Use
    true
    or
    false
    as appropriate.
    HostingApp.Instance.SetAuthorized (true);