title: fragmentActivity setarguments cannot resolve
body: <p>I am following this <a href="https://stackoverflow.com/questions/11387740/where-how-to-getintent-getextras-in-an-android-fragment">SO answer</a> . but I have error <code>cannot resolve method setarguments</code> on this line    </p>
  
  <pre><code>          details.setArguments(getIntent().getExtras());
  </code></pre>
  
  <p>this is the code</p>
  
  <pre><code>public class SingleViewActivity extends FragmentActivity {
  
      MyPageAdapter pageAdapter;
      @Override
      public void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_page_view);
  
          List&lt;Fragment&gt; fragments = getFragments();
  
          if (savedInstanceState == null) {
              // During initial setup, plug in the details fragment.
              MainActivity details = new MainActivity();
              details.setArguments(getIntent().getExtras());
              getSupportFragmentManager().beginTransaction().add(android.R.id.content, details).commit();
          }
  /*
          pageAdapter = new MyPageAdapter (getSupportFragmentManager(), fragments);
          ViewPager pager=(ViewPager)findViewById(R.id.viewpager);
          pager.setAdapter(pageAdapter);*/
  //        pageAdapter = new MyPageAdapter (getSupportFragmentManager(), fragments);
          ViewPager pager=(ViewPager)findViewById(R.id.viewpager);
          pager.setAdapter(pageAdapter);
      }
      private  List&lt;Fragment&gt; getFragments() {
          List&lt;Fragment&gt; flist = new ArrayList&lt;Fragment&gt;();
  
          flist = new ArrayList&lt;Fragment&gt;();
  
          flist.add(MyFragment.newInstance("frag1"));
          flist.add(MyFragment.newInstance("frag2"));
          flist.add(MyFragment.newInstance("frag3"));
          return flist;
      }
      public static class MyPageAdapter  extends PagerAdapter {
          //private List&lt;Fragment&gt; fragments;
          Context mContext;
          LayoutInflater mLayoutInflater;
  
          public MyPageAdapter(Context context)
          {
              mContext = context;
              mLayoutInflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  
          }
          @Override
          public boolean isViewFromObject(View view, Object object)
          {
              return view ==((LinearLayout) object);
          }
          @Override
          public Object instantiateItem(ViewGroup container, int position)
          {
  
              View itemView =mLayoutInflater.inflate(R.layout.pager_item,container,false);
              ImageView imageView= (ImageView) itemView.findViewById(R.id.viewpager);
              String Item = getActivity().getIntent().getExtras().getString("name");
  
              Bundle bundle = this.getArguments();
  
              //Bundle bundle = getIntent().getExtras();
  
              ArrayList&lt;Listitem&gt; personArrayList = bundle.getParcelableArrayList("Person_List");
  
              if (personArrayList != null &amp;&amp; !personArrayList.isEmpty()) {
                  for (Listitem person : personArrayList) {
                      Picasso.
                              with(this).
                              load(person.url)
                              .placeholder(R.drawable.logo)
                              .fit()
                              .noFade()
                              .into(imageView);
                      Log.i("PersonsActivity",String.valueOf(person.url));
                  }
              }
  
              imageView.setImageResource();
              container.addView(itemView);
              return itemView;
          }
  
          @Override
          public int getCount()
          {
              return this.fragments.size();
          }
      }
  
  }
  </code></pre>