Best way to show images in livewallpaper?
<p>I need to show some images in my lv. And I have two ideas.</p>

<p>First idea.</p>

<p>I create bitmap save it as PNG to cache and when I need it decode it using</p>

<pre><code>b=BitmapFactory.decodeFile(filePatch)
</code></pre>

<p>and display it using </p>

<pre><code>canvas.drawBitmap(b)
</code></pre>

<p>Second idea. </p>

<p>I create bitmap save it as PNG to cache. And when I need it create drawable from patch:</p>

<pre><code>Drawable d = Drawable.createFromPath(filePatch);
</code></pre>

<p>and display it using:</p>

<pre><code>Canvas c = null;

d.setBounds(window)

d.draw(canvas)
</code></pre>

<p>But there I have a problem with setBounds when i want draw mor than one image. I don't know how to set it up. And my question is what way to display images is more efficent and use less memory. Thanks!</p>
