Skip Navigation

Set up for
Xamarin
.
Android

After installing the the bindings and the
BlackBerry Dynamics SDK for Android
, follow these setup steps to prepare the installation for your project builds.

Rely on packaged GoodDynamics.Android binding project

You don't need to create your own binding project. For standard use, you can rely on the
GoodDynamics.Android.dll
packaged with every sample app.

Set Attribute.AlwaysRetainTaskState = true

In your projects for
Xamarin
, be sure to set
AlwaysRetainTaskState
= true for proper behavior of the app. Any Activity that is exported (and thus has some form of Intent Filter that allows an external entity to start it) must have
AlwaysRetainTaskState
= true. Other activities do not need this setting. For more details, see https://developer.xamarin.com/api/field/Android.Content.PM.ActivityInfoFlags.AlwaysRetainTaskState/.