updating horizontal ProgressDialog using Handler, while loading an image from the web
<p>Is it possible to update the horizontal (determinate) ProgressDialog using Handler (I deliberately don't want to use AsyncTask), while loading an image from the web? and if so, how do I do that?</p>

<p>this is the try block:</p>

<pre><code>URL url = new URL(link);
HttpURLConnection httpCon = (HttpURLConnection)url.openConnection();
if(httpCon.getResponseCode()!=200) return;
InputStream inputStream = httpCon.getInputStream();
Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
imageView.setImageBitmap(bitmap);
</code></pre>