android - importing custom library
<p>I developed a library that contains some Activities but when I try to show an activity android throws an exception on retrieving library resource.</p>

<pre><code>// code extract from activity.onCreate in library
getLayoutInflater().inflate(R.layout.library_resource, null).
</code></pre>

<p>If I add this library by <code>Project Properties -&gt; Java Build Path -&gt; Add Jars...</code> it doesn't work but adding the library by Android project by <code>Project Properties -&gt; Android -&gt; Library -&gt; Add...</code> it works fine.</p>

<p>Could anyone tell me why importing the jar it doesn't work ?</p>
