@Override
        protected Boolean doInBackground(final Void... voids) {
            final String network = meshManagerApi.exportMeshNetwork();
            if (network == null)
                return false;
            try {
                outputStream.write(network.getBytes());
                outputStream.close();
                return true;
            } catch (IOException e) {
                error = e.getMessage();
                Log.e(TAG, "Exception ex: " + error);
            }
            return false;
        }
Creates an AsyncTask to import the a mesh network

@param meshManagerApi Mesh manager api
app/src/main/java/no/nordicsemi/android/nrfmesh/utils/NetworkExportUtils.java