title: How to access resource strings from enum's ToString in Android?
body: <p>In my app, I have a Spinner being filled from an enum:</p>
  
  <pre><code>ArrayAdapter&lt;myEnum&gt; enumAdapter = new ArrayAdapter&lt;Stroke&gt; (parentActivity.getApplicationContext(), R.layout.simple_spinner_item, myEnum.values());
  enumAdapter.setDropDownViewResource(R.layout.simple_spinner_dropdown_item);
  enumSpinner.setAdapter(strokeAdapter);
  </code></pre>
  
  <p>This uses an override of the enum's <code>toString()</code> method to get a friendly name for the enum values to display in the <code>Spinner</code>. Currently my enum has strings hardcoded for the friendly names but I'd like to move these to <code>strings.xml</code> to support localization.</p>
  
  <p>However, toString doesn't have access to a <code>Context</code> so I'm not sure how to resolve the resource ids. </p>
  
  <p>Is there any way of getting localised strings in the toString() method of an enum?</p>