title: android rxjava repeating a request
body: <p>I am trying to achieve the following. I load a list of objects I want to get values to put in a list later.</p>
  
  <p>First I gather all the values into an array (to mountain order) using flatmap and then when everything is done I populate an adapter.</p>
  
  <p>The thing I am unable to do is to repeat the operation ever xxx seconds. I understand its done using an interval. Still I get no result at all, or only none repeating one result.</p>
  
  <p>Here’s my code:</p>
  
  <pre><code>  Observable.fromIterable(URLList)
              .concatMap(url -&gt; standartRequest(App.getInstance().getApi().getService().getData(currency.getUrl())))
              .retry(Constants.RETRY_COUNT)
              .timeout(Constants.TIMEOUT_IN_SECONDS, TimeUnit.SECONDS)
              .observeOn(AndroidSchedulers.mainThread())
              .subscribe(this::success, this::error, this::valuesRetrieved); 
  
  
  
      recyclerView = ((CurrencyListFragment) controller).getRecyclerView();
      LinearLayoutManager linearManager = new LinearLayoutManager(controller.getContext());
      recyclerView.setLayoutManager(linearManager);
  }
  
  
  private void valuesRetrieved() {
      listAdapter adapter = new listAdapter(valuesFromResponse);
      recyclerView.setAdapter(adapter);
  }
  
  private void success(Object response) {
      valuesFromResponse.add(response);
  }
  </code></pre>
  
  <p>Where do I put </p>
  
  <pre><code>.interval(5, TimeUnit.SECONDS).timeInterval()
  </code></pre>