Implement the BlackBerry Dynamics Launcher
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.- Download theBlackBerry Dynamics Launchersoftware from BlackBerry Developer Downloads.
- Unzip the packages.
- In your IDE, load the bindings into the desired projects. For each project, right-clickReferencesand clickEdit Referencesto reference the Launcher project (AndroidLauncherBinding.dll).
- Verify that theAndroidLauncherBindingproject references the followingAndroidsupport packages. If they are not present, add them to the 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 that you want it to appear on. TheBlackBerry Dynamics Launchercan be initialized using either an inclusive or exclusive list of activities. If an inclusive list is used, theBlackBerry Dynamics Launcheris shown only on the included activities.In this example, theBlackBerry Dynamics Launcheris 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);
- Add the following authorization code to the appropriate place in your app that authenticates users. Usetrueorfalseas appropriate.HostingApp.Instance.SetAuthorized (true);