Skip Navigation

Initialize your Activity for use with the BlackBerry Dynamics runtime

Make sure to initialize each
Activity
of your app for use with the
BlackBerry Dynamics Runtime
. In the
OnCreate
method, pass the current instance of the activity to the
GDAndroid.Instance.ActivityInit
method.
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); GDAndroid.Instance.ActivityInit (this); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); //Rest of Activity code below. … }