public static void setPicture(Context context, Media m, Bitmap p) {
   Log.d(TAG, "Setting new picture for " + m.getTitle());
   try {
     MediaDatabase.getInstance(context)
         .updateMedia(m.getLocation(), MediaDatabase.mediaColumn.MEDIA_PICTURE, p);
   } catch (SQLiteFullException e) {
     Log.d(TAG, "SQLiteFullException while setting picture");
   }
   m.setPictureParsed(true);
 }