Reputation: 423
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
Upvotes: 1
Views: 140
Reputation: 6162
you haven't add FullImageActivity
in manifest
thats why getting ActivityNotFoundException
add this into ur manifest under application tag
<activity
android:name="FullImageActivity" >
</activity>
Upvotes: 1