Optionally implementing the BlackBerry Dynamics Launcher
BlackBerry Dynamics Launcher
The
BlackBerry Dynamics Launcher
is optional code to
start the popular UI front-end to many BlackBerry
Dynamics
-based apps. For background, see Development Guide: BlackBerry Dynamics Launcher Library.BlackBerry Dynamics Launcher
button to an activity and
include the BlackBerry Dynamics Launcher
authentication logic in the appropriate place in your app. You need to have installed the
Xamarin
bindings as detailed in
Install the BlackBerry Dynamics SDK.General steps
- Download the software from https://community.blackberry.com/community/gdn/resources/dynamics/downloads.
- Unzip the packages.
- In your desired IDE, load the bindings into the desired projects. For each project you want to use the Launcher binding in, do the following:
- Right clickReferencesand clickEdit Referencesto reference the Launcher project. The important file here isAndroidLauncherBinding.dll.
- In theComponentsfolder of the project, add the "Android Support Library v13" component for backwards compatibility.
- Make sure theAndroidLauncherBindingproject properly references the followingAndroidSupport packages. If they are not there, add them to the project's packages and reference them within theAndroidLauncherBindingproject.
- Xamarin.Android.Support.v13.25.3.1 or later
- Xamarin.Android.Support.v4.25.3.1 or later
- In your app, include the packageUsing Com.Good.Launcher;
- Add theBlackBerry Dynamics Launcherto the activity you want it to appear on. TheBlackBerry Dynamics Launchercan be initialized using either an inclusive or an exclusive list of activities. If an inclusive list is used, theBlackBerry Dynamics Launcheris shown only on the included activities and vice versa.In this example, we are only adding it to the main activity.List includedActivities = new List(); includedActivities.Add(Java.Lang.Class.FromType(typeof(MainActivity))); LauncherButton.InitForapp(this, includedActivities, LauncherButton.ActivitiesTargetingMethod.Inclusive);
- Because theBlackBerry Dynamics Launcherrequires authentication, add the following authorization code to the appropriate place in your app that authenticates users. Usetrueorfalsewhen appropriate.HostingApp.Instance.SetAuthorized (true);