code: private void updateActivity(ActivityType type, String name, String streamingUrl) {
          if (name == null) {
              activity = null;
          } else if (streamingUrl == null) {
              activity = new ActivityImpl(type, name, null);
          } else {
              activity = new ActivityImpl(type, name, streamingUrl);
          }
          websocketAdapter.updateStatus();
      }
docs: Sets the current activity, along with type and streaming Url.
  
  @param type The activity's type.
  @param name The name of the activity.
  @param streamingUrl The Url used for streaming.