How do i return a bitmap from an Asyncronous task
<p>im fetching an image from internet using the below code using an Async task,But the bitmp returns from the function is always null.</p>

<pre><code>private Bitmap asyncTaskFetchImage(final String imgeurl) {
        // TODO Auto-generated method stub

        new AsyncTask&lt;Object, Object, Object&gt;() {

            @Override
            protected void onPreExecute() {

                progress_Dialog = ProgressDialog.show(this, "", "Loading");
            }

            @Override
            protected Object doInBackground(Object... params) {
                // TODO Auto-generated method stub
                try
                {
                toSendBg=LoadImageFromURL(imgeurl);
                System.gc();
                return 0;
                }
                catch (Exception e) {
                    e.printStackTrace();
                }
                return 0;
            }
            @Override
            protected void onPostExecute(Object result) {
                if (progress_Dialog != null) {

                    progress_Dialog.dismiss();

                }

            }

        }.execute();
        return toSendBg;
    }
</code></pre>

<p>Is this the exact way to return value from an Asyntask?</p>
