public class ImageViewActivity extends Activity {
public void onCreate(Bundle savedInstanceState) {
Integer[] ImgPreview = { R.drawable.mlview1, R.drawable.mlview2,
R.drawable.mlview3 };
super.onCreate(savedInstanceState);
setContentView(R.layout.image_prev);
Intent intent = null;
Bundle b = intent.getExtras();
int position = b.getInt("position");
// here, what to do?
if (position == 0) {
}
从先前的活动来看,它根据“沉积”的价值,收集了“沉积”参数,它应当显示图像。 例如,如果位置0,则显示“mlview1”,等等。