title: setArgument not working in passing data in fragment
body: <p>I want to pass data between two fragment,</p>
  
  <p>Here is my setArgument</p>
  
  <pre><code>ListFragment fragment = new ListFragment();
  Bundle bundle = new Bundle();
  
  bundle.putString("Test", "test");
  fragment.setArguments(bundle);
  </code></pre>
  
  <p>And here is my <code>getArgument</code></p>
  
  <p>In my <code>onCreate</code> method</p>
  
  <pre><code>String test = args.getString("Test","test");
  
  if(this.getArguments()!=null)
  {
      Log.d("hey", "hey");
      test = this.getArguments().getString("Test","test");
      details_id.setText(test);
  }
  </code></pre>
  
  <p>I have <code>java.lang.NullPointerException</code> for <code>details_id.setText(test);</code></p>
  
  <p>My get Argument is working I can get hey: hey in my log but my <code>setArgument</code> is not working.</p>
  
  <blockquote>
    <p>UPDATE</p>
  </blockquote>
  
  <p>I don't have any error now but I cannot pass any argument</p>
  
  <p>Here is my updated <code>onCreate</code> method</p>
  
  <pre><code>@Override
  public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
      chooseTrip(tripIds.get(position));
  
      String selectedTripId = tripIds.get(position);
  
      Helpers.saveToSharedPreferences(getActivity(),
              Constants_Prefs.SELECTED_TOP_LEVEL_RECORD,
              Constants_Keys.SELECTED_TRIP_ID,
              selectedTripId);
  
      ListFragment fragment = new ListFragment();
      Bundle bundle = new Bundle();
  
      bundle.putString("Test", "test");
      fragment.setArguments(bundle);
  }
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  
      final View fragV = inflater.inflate(R.layout.fragment_main, container, false);
      listView = (ListView)fragV.findViewById(R.id.listView);
      listView.setOnItemClickListener(this);
  
      TextView details_id = (TextView)fragV.findViewById(R.id.detail_header_id);
      details_id.setVisibility(View.VISIBLE);
      if(this.getArguments()!=null){
          Log.d("hey", "hey");
          test = this.getArguments().getString("Test","t");
          details_id.setText(test);
      }
  }
  </code></pre>
  
  <p>My Log: hey﹕ hey</p>
  
  <p>My <code>textView</code> print:
  if I use <code>test = this.getArguments().getString("Test","t");</code> -> my <code>textView</code> is t</p>
  
  <p>If I use <code>test = this.getArguments().getString("Test");</code> -> my <code>textView</code> is nothing</p>