Android change widget color at runtime UPDATED
<p>I have a widget, with a framelayout.</p>

<p>Is there a way to change my widgets color/shape in runtime? </p>

<p>I am using a shape xml for the background. </p>

<p><strong>update:</strong></p>

<p>i tried:
1,</p>

<pre><code>            Paint paint=new Paint(); 

            Bitmap bitmap=Bitmap.createBitmap(100, 100, Config.ARGB_8888);
            Canvas canvas=new Canvas(bitmap);
            paint.setColor(Color.RED);
            canvas.drawRoundRect(new RectF(1,1,111,111), 10, 10, paint);

            updateViews.setImageViewBitmap(R.id.FL, bitmap);
</code></pre>

<p>--> error loading widget</p>

<p>2, </p>

<pre><code>updateViews.setImageViewResource(R.id.FL, R.drawable.blue);
</code></pre>

<p>--> error loading widget</p>
