private void showResultMessage(String message) {
        runOnUiThread(() -> {
            tvResult.setText(message);
            dialog.dismiss();
        });
    }
show message on UI Thread
and dismiss loading dialog

@param message
simple-grpc-client-android/app/src/main/java/com/example/grpc/client/MainActivity.java