Dispalying image in android
<p>I am trying to display an image in android.The process is i am downloading 1 image from net and trying to display it in the screen,the problem i am facing is in the activity screen i cant able to set the content view and the image.Following is the code:</p>

<p>main.xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" &gt;

    &lt;TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/hello" /&gt;

    &lt;ImageView
        android:id="@+id/imageView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/ic_launcher" /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>Activity Screen:</p>

<pre><code>public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.);----&gt;Here i cant set as main

        Bitmap bitmap = DownloadImage(
                "http://www.allindiaflorist.com/imgs/arrangemen4.jpg");
            ImageView img = (ImageView) findViewById(R.id.);  //here i cant set the image id
            img.setImageBitmap(bitmap);

    }
</code></pre>
