title: Android program quits trying to display a jpg image
body: <p>Here is my program.</p>
  
  <pre><code>public class MathsExplorer extends Activity {
      /** Called when the activity is first created. */
  
      private GraphicsView view;
      @Override
      public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
  
         setContentView(view);
  
      }
  }
  public class GraphicsView extends View {
  
      public GraphicsView(Context context) {
          super(context);
          // TODO Auto-generated constructor stub
      }
  
      public void onDraw(Canvas canvas)
      {
          super.onDraw(canvas);
          String background = "/Maths Explorer/bin/res/drawable/MC900436279.jpg";
          Bitmap b = BitmapFactory.decodeFile(background);
          canvas.drawBitmap(b, 10, 10, null);
      }
  }
  </code></pre>
  
  <p>It quits right away with the error "Unfortunatly, Maths Explorer has stopped."</p>
  
  <p>Can anyone help me? I'm not sure, I'm just trying to display an image.</p>