title: How to perform same task in all the pages in a viewPager instantly?
body: <p>I am working with <code>viewPager</code> where lets say I have <code>3</code>fragments<code>out of that one is in focus so when I perform any operations like</code>load<code>or</code>delete` the operation executes in the page on focus for the time and need to refresh the app in order for the other pages to perform the operation. </p>
  
  <p>Can anyone please let me know how do i make it perform a same task instantly when I call it from either of the pages</p>
  
  <p>I have came across this question <a href="https://stackoverflow.com/questions/10849552/update-viewpager-dynamically/10852046#10852046">stackoverflow question</a> but here they are deleting the fragments but all I need to do is refresh all so all perform the given operation when it's been given.</p>
  
  <p>I have also came across this question <a href="https://stackoverflow.com/questions/10611018/how-to-update-viewpager-content">Stackoverflow question 2</a> but here it's re- doing everything thus not efficient at all</p>
  
  <p><strong>Tried the following code, it worked, but it's lagging</strong></p>
  
  <pre><code>pager.getAdapter().notifyDataSetChanged();//with the pager adapter "position_none" &lt;------ laggy
  </code></pre>
  
  <blockquote>
    <p><strong>Got the solution that I was looking for in case anyone of you is looking for the same here is the <a href="http://semycolon.blogspot.in/2014/12/refresh-pageviewer-fragment-everytime.html" rel="nofollow noreferrer">link</a></strong>.</p>
  </blockquote>