Android widget layout update (AnalogClock)
===

i've got some problem with update AnalogClock resources and imageview. I've got my class
<!-- language: lang-java -->

    public class Widget extends AppWidgetProvider



with
<!-- language: lang-java -->

    public static class UpdateService extends Service



which onStart change Activity to Settings
<!-- language: lang-java -->

`Context context = getApplicationContext();`<br/>
`try{`<br/>
`Intent myIntent = new Intent(context, Info.class);`<br/>
`myIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);`<br/>
`context.startActivity(myIntent);`<br/>
`}catch(Exception e){`<br/>
`Log.e(LOG_TAG,"Error Settings Intents",e);`<br/>
`}`

In **Info.class** i've create tint selector. After save settings i recolor my AnalogClock:
<!-- language: lang-java -->
`public void reColor(int color){`<br/>
`// dial`<br/>
`Drawable dial_bg = getResources().getDrawable(R.drawable.widgetdial);`<br/>	
`dial_bg.setColorFilter(color, PorterDuff.Mode.MULTIPLY);`<br/>		
`// hour`<br/>
`Drawable hour_bg = getResources().getDrawable(R.drawable.widgethour);`<br/>	
`hour_bg.setColorFilter(color, PorterDuff.Mode.MULTIPLY);`<br/>	
`//minute`<br/>
`Drawable min_bg = getResources().getDrawable(R.drawable.widgetminute);`<br/>
`min_bg.setColorFilter(color, PorterDuff.Mode.MULTIPLY);`<br/>	
`// clock`<br/>
`findViewById(R.id.dial).setBackgroundDrawable(dial_bg);`<br/>
`findViewById(R.id.AnalogClock).setBackgroundDrawable(dial_bg);`<br/>
`}`


And it works with my current layout (AnalogClock has got selected color). So i save color value to SharedPreferences and call update service:
<!-- language: lang-java -->
`
button_save.setOnClickListener(new OnClickListener() {` <br/>
`public void onClick(View v) {	`<br/>			
`Context context = getBaseContext();`<br/>
`Intent forceUpIntent = new Intent(context, Widget.UpdateService.class);`<br/>
`context.startService(forceUpIntent);`<br/>
`finish();`<br/>
`}`<br/>
`});`<br/>


and i start buildUpdate:
<!-- language: lang-java -->
`
public RemoteViews buildUpdate(Context context) { `<br/>        
`RemoteViews updateViews = new RemoteViews(context.getPackageName(), R.layout.widget);`<br/>
`try{`<br/>
`Log.d(LOG_TAG,"Updating Views: REDRAW");`<br/>
`SharedPreferences settings = getSharedPreferences(COLOR_NAME, Context.MODE_PRIVATE);`<br/>
`if(settings !=null){`<br/>
`int newColor = settings.getInt(RECOLOR, Color.argb(255, 255, 255, 255));`<br/>
`if(widgetColor != newColor) {`<br/>
`// dial`<br/>
`Drawable dial_bg = getResources().getDrawable(R.drawable.widgetdial);`	<br/>
`dial_bg.setColorFilter(newColor, PorterDuff.Mode.MULTIPLY);`<br/>
`// hour`<br/>
`Drawable hour_bg = getResources().getDrawable(R.drawable.widgethour);`<br/>	
`hour_bg.setColorFilter(newColor, PorterDuff.Mode.MULTIPLY);`<br/>
`//minute`<br/>
`Drawable min_bg = getResources().getDrawable(R.drawable.widgetminute);`<br/>	
`min_bg.setColorFilter(newColor, PorterDuff.Mode.MULTIPLY);`<br/>
`// clock`<br/>	    			`//findViewById(R.id.dial).setBackgroundDrawable(dial_bg);`<br/>			`//findViewById(R.id.AnalogClock).setBackgroundDrawable(dial_bg);`<br/>	    			
`updateViews.setImageViewBitmap(R.id.dial, drawableToBitmap(dial_bg));`<br/>
`updateViews.setImageViewBitmap(R.id.AnalogClock, drawableToBitmap(dial_bg));`<br/>
`widgetColor = newColor;`<br/>
`}`<br/>
`}`<br/>
`Intent AlarmClockIntent = new Intent(Intent.ACTION_MAIN).addCategory(Intent.CATEGORY_LAUNCHER).setComponent(new ComponentName("com.android.alarmclock", "com.android.alarmclock.AlarmClock"));`<br/>
`PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, AlarmClockIntent, 0);`<br/>
`updateViews.setOnClickPendingIntent(R.id.AnalogClock, pendingIntent);`<br/>
`}catch(Exception e){`<br/>
`Log.e(LOG_TAG,"Error Updating Views",e);`<br/>
`}`<br/>
`return updateViews;`<br/>
`}`

But it doesn't work, warning:
`07-25 16:26:45.615: WARN/AppWidgetHostView(103): updateAppWidget couldn't find any view, using error view<br/>
07-25 16:26:45.615: WARN/AppWidgetHostView(103): android.widget.RemoteViews$ActionException: view: android.widget.AnalogClock doesn't have method: setImageBitmap(android.graphics.Bitmap)
`

Is it possible to update **AnalogClock** layout or **ImageView** with **Bitmap** or **Drawable**?