title: Display image after button click
body: <p>I am making a really simple android application that will display a picture after a button is clicked.  I have searched for days and tried everything I can think of but cant seem to get it to work.  I have been able to host the picture online and link to it but I want the content available offline too.  Please help, sorry for the stupid question.</p>
  <h3>Update:</h3>
  <p>It is a fixed image and in my drawable resource. Here is the current code I am using to display the image from a URL.  What changes should I make to to display that same image from my drawable resource?</p>
  <p>JAVA</p>
  <pre><code>public class StandingOrders extends Activity
  {
      @Override
      public void onCreate(Bundle savedInstanceState) 
      {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
      }
      public void buttonClick (View image)
      { 
          Uri uri = Uri.parse(&quot;my url&quot;);
          Intent intent = new Intent(Intent.ACTION_VIEW, uri);
          startActivity(intent) 
      }
  }
  </code></pre>
  <p>XML</p>
  <pre><code>&lt;Button android:id=&quot;@+id/btn1&quot; 
          android:layout_height=&quot;wrap_content&quot; 
          android:layout_width=&quot;170px&quot; 
          android:text=&quot;The Button&quot; 
          android:layout_gravity=&quot;center&quot; 
          android:clickable=&quot;true&quot;
          android:onClick=&quot;buttonClick&quot;&gt;
  &lt;/Button&gt;
  </code></pre>