title: Cannot convert Bitmap to Drawable, why do i get this error?
body: <p>I have spend about 3 hours trying to figure this out and it seems so simple but i cant seem to work it out! Could someone please help me! All i want it to do it display an image from the drawable resources folder. It says that "cannot convert from Bitmap to Drawable".</p>
  
  <pre><code>package com.CS3040.Places;
  
  import android.content.Context;
  import android.graphics.Bitmap;
  import android.graphics.BitmapFactory;
  import android.graphics.Canvas;
  import android.graphics.Point;
  import android.graphics.drawable.BitmapDrawable;
  import android.graphics.drawable.Drawable;
  import com.CS3040.*;
  import com.CS3040.Coursework.R;
  
  import com.google.android.maps.GeoPoint;
  import com.google.android.maps.MapView;
  import com.google.android.maps.OverlayItem;
  
  public class PlaceOverlayItem extends OverlayItem {
      private final GeoPoint point;
      private final Place place;
      private final Drawable marker;
      //private final Context context;
  
      public PlaceOverlayItem(Context context, Place p, String type) {
          super(p.getGeoPoint(), p.getName(), p.getFormatted_address());
  
          if(type.equals("restaurant"))
          { 
              //this.marker =
              Bitmap bmp = BitmapFactory.decodeResource(context.getResources(), R.drawable.restaurant);
              this.marker = bmp;
  
          } 
  
          //super.setMarker(this.marker);
          this.point = p.getGeoPoint();
          this.place = p;
      }
  
      /**
       * @return the point
       */
      public GeoPoint getPoint() {
          return point;
      }
  
      /**
       * @return the place
       */
      public Place getPlace() {
          return place;
      }
  
      }
  </code></pre>