Back to project page Android-PhotoBook.
The source code is released under:
MIT License
If you think the Android project Android-PhotoBook listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.avidas.photoviewer; /*from w w w. ja va 2 s . com*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.widget.ImageView; public class DetailActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.photo_detail); // get intent data Intent i = getIntent(); // Selected image id int position = i.getExtras().getInt("id"); ImageAdapter imageAdapter = new ImageAdapter(this); ImageView imageView = (ImageView) findViewById(R.id.full_image_view); imageView.setImageResource(imageAdapter.mThumbIds[position]); } }