
ImageView imageView = (ImageView) findViewById(R.id.image_view);
imageView.setImageBitmap(bitmap);
</pre>

<p>In the example shown above, the <code><a href="../../../reference/java/io/InputStream.html">InputStream</a></code> represents the text of a
web page. This is how the example converts the <code><a href="../../../reference/java/io/InputStream.html">InputStream</a></code> to
a string so that the activity can display it in the UI:</p>

<pre>// Reads an InputStream and converts it to a String.
public St