public void setBoundNetKeyIndex(final int index) {
        try {
            final ApplicationKey appKey = this.appKey.clone();
            appKey.setBoundNetKeyIndex(index);
            if (getNetworkLiveData().getMeshNetwork().updateAppKey(appKey)) {
                selectAppKey(appKey.getKeyIndex());
            }
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
    }
Sets the bound net key index.
app/src/main/java/no/nordicsemi/android/nrfmesh/viewmodels/EditAppKeyViewModel.java