1

I am getting error in fullscreen image. When I click on any image from gridview it shows unfortunately stopped.

public class FullImageActivity extends Activity {

    ImageView ivfullimage;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.full_image);

        ivfullimage = (ImageView) findViewById(R.id.ivfullimage);
        Intent i = getIntent();
        int position = i.getExtras().getInt("id");
        ImageAdapter imageAdapter = new ImageAdapter(FullImageActivity.this);

        ivfullimage.setImageResource(imageAdapter.mThumbIds[position]);
    }
}

my error is

enter image description here

mmBs
  • 8,421
  • 6
  • 38
  • 46
akky777
  • 423
  • 2
  • 6
  • 23

1 Answers1

1

you haven't add FullImageActivityin manifest thats why getting ActivityNotFoundException

add this into ur manifest under application tag

 <activity
     android:name="FullImageActivity" >
 </activity>
Kaushik
  • 6,150
  • 5
  • 39
  • 54