gridview全屏活动错误

时间:2014-01-31 13:02:16

标签: android android-gridview

我在全屏图片中收到错误。当我点击gridview中的任何图像时,它显示不幸停止了。

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]);
    }
}

我的错误是

enter image description here

1 个答案:

答案 0 :(得分:1)

你还没有在FullImageActivity中添加manifest这就是为什么要ActivityNotFoundException

将此添加到应用程序标记

下的ur清单中
 <activity
     android:name="FullImageActivity" >
 </activity>