title: How can I know when focus is on one of the fragments inside the viewpager?
body: <p>I created five fragments inside the view pager.</p>
  
  <p>All fragments are created as the activity containing the viewpager is executed.</p>
  
  <p>Therefore, the method of the fragment is executed as soon as the activity is executed.</p>
  
  <p>In other parts this is what I intended. </p>
  
  <p>However, this method raises another activity via Intent, which I did not want.</p>
  
  <p>The point at which I want this method to execute is when the fragment is put on the screen.</p>
  
  <p>Is there a method that works when a fragment inside the view pager that is already created is displayed on the screen?</p>
  
  <p>The general life cycle method of a fragment can not be used because it works concurrently with activity execution.</p>
  
  <p>If you know of any way I can use it, I would be grateful to let you know.</p>
  
  <p>Have a good day :)</p>