Using url with parameters to download image from internet for Android?
<p>Using <strong>URL with parameters</strong> to download image from internet for Android???</p>

<p>This code is work,but I don't want that,I want to use a URL with parameters to download image.(ex:<strong>URL=<a href="http://yahoo.com/record?ProductID=1" rel="nofollow">http://yahoo.com/record?ProductID=1</a></strong>)</p>

<p>How to change this code?please.</p>

<pre><code>bmp = this.GetNetBitmap("http://avatar.csdn.net/B/D/5/1_redoffice.jpg");

public Bitmap GetNetBitmap(String url){
URL imageUrl = null;
Bitmap bitmap = null;
try{
imageUrl = new URL(url);
}
catch(MalformedURLException e){
Log.e("DownloadTimerTask", e.getMessage());
}
try{ HttpURLConnection conn = (HttpURLConnection)imageUrl.openConnection();
conn.setDoInput(true);
conn.connect();
InputStream is = conn.getInputStream(); bitmap = BitmapFactory.decodeStream(is); is.close();
}
catch(IOException e){
Log.e("DownloadTimerTask", e.getMessage());
}
return bitmap;
}
</code></pre>
