Why do I get an conversion error in android using R.string? : <p>My file <code>strings.xml</code> looks like the following:</p>

<pre><code>&lt;resources&gt;
    &lt;string name="app_name"&gt;BootIntervals&lt;/string&gt;
    &lt;string name="action_settings"&gt;Settings&lt;/string&gt;
    &lt;string name="logname"&gt;"bi2.log"&lt;/string&gt;
&lt;/resources&gt;
</code></pre>

<p>and later I call a method  </p>

<pre><code> logger.init(R.string.logname);
</code></pre>

<p>which takes a <code>String</code> as argument. However, I get the following error:</p>

<pre><code>Error:(21, 15) error: method init in class MyLogger cannot be applied to given types;
required: String
found: int
reason: actual argument int cannot be converted to String by method invocation conversion
</code></pre>

<p>It does not matter if I use <code>bi2.log</code> or <code>"bi2.log"</code> in <code>strings.xml</code>. What do I make wrong this time? I do not understand why <code>R.string.logname</code> is an integer...</p>
