title: How to change android:hint dynamically?
body: <p>I want to change android:hint depending on each model.
  (Android device might have different sdcard path. I want to set this value.)</p>
  
  <p>How can I get the element or change the attribute?</p>
  
  <p>Such as</p>
  
  <p>Preferences.java    </p>
  
  <pre><code>public class Preferences extends PreferenceActivity {
      private void setDeviceSDCardPath () {
          String defaultPath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getAbsolutePath();
          pref = getElementById(R.preferences.pref_id);   // &lt;--- invalid, but I want to do like this
          pref.hint = "ex.) " + defaultPath; // &lt;-- also invalid
      }
  }
  </code></pre>
  
  <p>preferences.xml</p>
  
  <pre><code>&lt;PreferenceCategory android:title="@string/title"&gt;
       &lt;EditTextPreference
              android:id="@+id/pref_id"
              android:key="pref_key"
              android:title="@string/pref_title"
              android:summary="@string/pref_summary"
              android:hint="/storage/sdcard"
              android:defaultValue="/storage/sdcard/Download/"/&gt;
  &lt;/PreferenceCategory&gt;
  </code></pre>