سؤال

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

هل كانت مفيدة؟

المحلول

you haven't add FullImageActivityin manifest thats why getting ActivityNotFoundException

add this into ur manifest under application tag

 <activity
     android:name="FullImageActivity" >
 </activity>
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top