Create drawable resource path dynamically
<p>I have something like the following line of code:</p>

<pre><code>Notification notif = new Notification(R.drawable.notification_XX, "Notify", System.currentTimeMillis());
</code></pre>

<p>My problem is that i want to make <code>R.drawable.notification_XX</code> changeable, so for example if I have a variable <code>i = 24;</code> then the appropriate resource <code>R.drawable.notification_24</code> should be used</p>

<p>So, is there a way of creating a drawable resource path dynamically?</p>

<p>thanks in advance, Martin</p>
