Android Open Source - AndroidMooch Show Image Activity






From Project

Back to project page AndroidMooch.

License

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.

Java Source Code

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));
  }
  
}




Java Source Code List

com.github.stchris.activities.BookInfoActivity.java
com.github.stchris.activities.BookSearchActivity.java
com.github.stchris.activities.BookSearchListActivity.java
com.github.stchris.activities.InventoryActivity.java
com.github.stchris.activities.MainActivity.java
com.github.stchris.activities.ShowImageActivity.java
com.github.stchris.activities.WishlistActivity.java
com.github.stchris.models.BookListAdapter.java
com.github.stchris.models.Book.java
com.github.stchris.queries.Constants.java
com.github.stchris.util.JSONUtil.java
com.github.stchris.util.Util.java
com.github.stchris.views.BookListView.java