title: set edittext text in fragment to a variable value from other fragment
body: <p>I have a <code>fragment1</code> that has a variable <code>x</code> and a second fragment that has an <code>Edit Text</code>, </p>
  
  <pre><code> //this code in fragment 1 onCreateView
   double x = 1.111111
  
   //txt1 is in fragment2
   EditText txtx =(EditText)rootView.findViewById(R.id.txt1); 
  </code></pre>
  
  <p>When I do the following the app crashes:</p>
  
  <pre><code> txtx.setText(x);
  </code></pre>