Skip Navigation

Using a custom Activity subclass

The 
BlackBerry Dynamics SDK for Cordova
 includes an Activity subclass (
com.good.gd.cordova.core.MainActivity
) that is a subclass of BBDCordovaActivity (
com.good.gd.cordova.core.BBDCordovaActivity
). BBDCordovaActivity extends CordovaActivity.
com.good.gd.cordova.core.MainActivity
 is the default main activity in a 
Cordova
 app for 
Android
.
If you want to use a custom CordovaActivity subclass, it must extend 
com.good.gd.cordova.core.BBDCordovaActivity
 to ensure proper integration with the 
BlackBerry Dynamics SDK for Android
. To prevent merging issues, in 
<app>
/plugins/cordova-plugin-bbd-base/plugin.xml, in the appropriate edit-config tag, replace 
com.good.gd.cordova.core.MainActivity
 with your custom 
com.good.gd.cordova.core.BBDCordovaActivity
 subclass. Run the 
cordova prepare
 command to apply the changes.