Back to project page androidui.
The source code is released under:
MIT License
If you think the Android project androidui 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 course.examples.UI.GridView; /* w w w .j av a 2s . c o m*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.widget.ImageView; public class ImageViewActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Get the Intent used to start this Activity Intent intent = getIntent(); // Make a new ImageView ImageView imageView = new ImageView(getApplicationContext()); // Get the ID of the image to display and set it as the image for this ImageView imageView.setImageResource(intent.getIntExtra(GridLayoutActivity.EXTRA_RES_ID, 0)); setContentView(imageView); } }