source not found error while showing a pic in image view in my android project
<pre><code>package your.Ui.PickImage;

import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;
public class PickImageActivity extends Activity  implements View.OnClickListener
{
    Button button1, button2;
    ImageView yourimgView=(ImageView)findViewById(R.id.imageView1);
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        button1 = (Button) findViewById(R.id.button1);
        button2 = (Button) findViewById(R.id.button2);
        button1.setOnClickListener(this);
        button2.setOnClickListener(this);
    }



    public void onClick(View v) 
    {
        switch(v.getId()) 
        {
            case R.id.button1:
                Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
                photoPickerIntent.setType("image/*");
                startActivityForResult(photoPickerIntent, 1);
            break;
            case R.id.button2:
                Toast.makeText(this, "sorry..!!!cannot access download file..!!!", 

                      Toast.LENGTH_LONG).show();

            break;
       }
    }
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        switch (requestCode) {
        case 1:
         {
          if (resultCode == RESULT_OK)
          {
            Uri photoUri = data.getData();
            if (photoUri != null)
            {
            try {
                  String[] filePathColumn = {MediaStore.Images.Media.DATA};
                  Cursor cursor = getContentResolver().query(photoUri, 

                       filePathColumn, null, null, null); 
                 cursor.moveToFirst();
                  int columnIndex = cursor.getColumnIndex(filePathColumn[0]);
                  String filePath = cursor.getString(columnIndex);
                  cursor.close();
                  Bitmap bMap = BitmapFactory.decodeFile(filePath);
                  yourimgView.setImageBitmap(bMap);

         }catch(Exception e)
          {}
          }
        }
        }
        }}
}
</code></pre>

<p>I am using this piece of code to search a picture in a gallery and show that image on the image view. While loading the app I get the error that the source is not found and I should edit the source lookup path. What should I do now?</p>
