title: how to pass string data from activity to fragment?
body: <p>I want to pass string value from activity to fragment. For that I'm using bundle for transferring string value.</p>
  
  <p><strong>PUT STRING ACTIVITY</strong>
  Passing string value :-</p>
  
  <pre><code>           Bundle bundle = new Bundle();
              bundle.putString("Value", resultp.get(CurrentProjectActivity.VALUE));
              Log.d(TAG, "Value  ::: " + resultp.get(CurrentProjectActivity.VALUE));
              // set Fragmentclass Arguments
              AmenetiesFragment fragobj = new AmenetiesFragment();
              fragobj.setArguments(bundle);
  </code></pre>
  
  <p>In log I got "Value" value as well.</p>
  
  <p>GET STRING VALUE IN FRAGMENT (IT IS NOT WORKING).</p>
  
  <pre><code>     @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
  
      View rootView = inflater.inflate(R.layout.activity_listview, container, false);
      Bundle bundle = this.getArguments();
      Log.d(TAG, "Value's value:)  ::: " + bundle);
      String strtext = bundle.getString("Value");
      return rootView;
  }
  </code></pre>
  
  <p>In log I'm getting NULL value for BUNDLE. Please help me to resolve this Issue. Thanks in advance.</p>