Update to use modern reference to cordova activity

((CordovaActivity)this.cordova.getActivity()).startActivity(i);