Back to project page AndroidMooch.
The source code is released under:
Copyright (c) 2010 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software witho...
If you think the Android project AndroidMooch 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.github.stchris.activities; /*from w ww .j a v a2 s . c o m*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.widget.ImageView; import com.github.stchris.R; import com.github.stchris.queries.Constants; import com.github.stchris.util.Util; public class ShowImageActivity extends Activity { /** * Intent action for ShowImageActivity. */ public static final String ACTION = "com.github.stchris.action.ShowImageAction"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.showimage); final ImageView imgView = (ImageView) findViewById(R.id.imgToShow); final Intent intent = getIntent(); String imageToShow = ""; if (ACTION.equals(intent.getAction())) { imageToShow = intent.getExtras().getString(Constants.IMAGE_TO_SHOW); } imgView.setImageBitmap(Util.loadBitmap(imageToShow)); } }