我在全屏图片中收到错误。当我点击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]);
}
}
我的错误是
答案 0 :(得分:1)
你还没有在FullImageActivity
中添加manifest
这就是为什么要ActivityNotFoundException
将此添加到应用程序标记
下的ur清单中 <activity
android:name="FullImageActivity" >
</activity>