I am trying to display one image in the emulator. But BitmapFactory.decode() is returning NULL everytime(with .bmp/.jpg files etc..).

Can anyone look into the code, suggest the soluton.


I am giving piece of code for reference.

Sample Code:
==========
package com.google.android.testimage;

import android.app.Activity;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.os.Bundle;
import android.widget.ImageButton;

public class Test_Image extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);

final String path = new String("C:\\Images\\DSC00822.jpg");
ImageButton imgButton = new ImageButton(this);
Canvas canvas = new Canvas(BitmapFactory.decode(path));

imgButton.draw(canvas);

setContentView(imgButton);
//setContentView(R.layout.main);
}
}

Thanks,
Biswajit