title: How to get string from resources strings into a fragment
body: <p>I tried reading a number of solutions on Stack Overflow and have found they either don't work for my scenario or I simply don't understand their explanation (I am very new to Java and Android.
  I have strings set up under res/values/strings.xml that I wish to use in the class:-</p>
  
  <pre><code>public class AttractionFragment extends Fragment {
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
                           Bundle savedInstanceState) {
      View rootView = inflater.inflate(R.layout.word_list, container, false);
  
      // create an array list of details
      final ArrayList&lt;Details&gt; details = new ArrayList&lt;&gt;();
  
      // Details details
      details.add(new Details(getActivity().getString(R.string.fun_bigsplash_name), getString(R.string.fun_bigsplash_addr), R.string.fun_bigsplash_num, R.drawable.bigsplash));
  </code></pre>
  
  <p>I've tried a number of variants (the reason they are different is just to show what I tried) but can't work it out. The R.drawable.bigsplash works fine (when I'm using literal strings for the others).</p>
  
  <p>The error message states an int, which I assume means it's getting the reference and not the actual string. </p>
  
  <p>How do I get the string from within the fragment?</p>
  
  <p>Thanks.</p>