package com.avidas.photoviewer;

public class DetailActivity {

}

@@ -30,37 +30,690 @@
 r;%0A%0A
-public class DetailActivity %7B%0A
+import android.app.Activity;%0Aimport android.content.Intent;%0Aimport android.os.Bundle;%0Aimport android.widget.ImageView;%0A %0Apublic class DetailActivity extends Activity %7B%0A %0A    @Override%0A    public void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.photo_detail);%0A        // get intent data%0A        Intent i = getIntent();%0A        // Selected image id%0A        int position = i.getExtras().getInt(%22id%22);%0A        ImageAdapter imageAdapter = new ImageAdapter(this);%0A %0A        ImageView imageView = (ImageView) findViewById(R.id.full_image_view);%0A        imageView.setImageResource(imageAdapter.mThumbIds%5Bposition%5D);%0A    %7D
 %0A%7D%0A

Add Detail View Activity