code: public static void registerProgressListener(@NonNull final Context context, @NonNull final DfuProgressListener listener) {
  		if (mProgressBroadcastReceiver == null) {
  			mProgressBroadcastReceiver = new ProgressBroadcastsReceiver();
  
  			final IntentFilter filter = new IntentFilter();
  			filter.addAction(DfuBaseService.BROADCAST_PROGRESS);
  			filter.addAction(DfuBaseService.BROADCAST_ERROR);
  			LocalBroadcastManager.getInstance(context).registerReceiver(mProgressBroadcastReceiver, filter);
  		}
  		mProgressBroadcastReceiver.setProgressListener(listener);
  	}
docs: Registers the {@link DfuProgressListener}.
  Registered listener will receive the progress events from the DFU service.
  
  @param context  the application context.
  @param listener the listener to register.