title: in android public class ImageDownlod extends AsyncTask<String,Void, Bitmap
body: <p>in class ImageDownlod  give me error when using void in second var...</p>
  
  <p>error in using void </p>
  
  <p><strong>error here in void</strong> </p>
  
  <pre><code>           public class ImageDownlod extends AsyncTask&lt;String,Void, Bitmap&gt;   
              {
  
  
                  @Override
                  protected Bitmap doInBackground(String... urls) {
                      try {
                          URL url = new URL(urls[0]);
                          HttpsURLConnection connection=(HttpsURLConnection)url.openConnection();
                          connection.connect();
                          InputStream inputStream= connection.getInputStream();
                          Bitmap mybitmap = BitmapFactory.decodeStream(inputStream);
                          return mybitmap;
                      }
  
                      catch (MalformedURLException e)
                      {
                            e.printStackTrace();
                      }
  
                      catch (IOException e)
                      {
                          e.printStackTrace();
                      }
                      return null;
                  }
  </code></pre>