I am trying to make it so that the widget shows an image saved onto the sdcard. so far i have found this:
String imageInSD = String.format("/sdcard/facepalm%d.jpeg", counter%10);
Bitmap bitmap = BitmapFactory.decodeFile(imageInSD);
remoteViews.setBitmap(R.id.imageview1, "setImageBitmap", bitmap);
ImageView myImageView = (ImageView)findViewById(R.id.imageview1);
myImageView.setImageBitmap(bitmap);
The commented line causes the widget to crash for some reason. I just want to find a way to make this work.