title: Getting a Bitmap from a SVG Url resource
body: <p>I'm trying to use Glide to get a SVG resource from a URL, but I don't know how to get a Bitmap object instead of loading it in into a View.<br>
  The reason for that is that I need to load some SVG files on a Widget.</p>
  
  <p>I used this example: <a href="https://stackoverflow.com/a/30938082/3346625">https://stackoverflow.com/a/30938082/3346625</a></p>
  
  <p><strong>UPDATE 1:</strong>
  Setup GenericRequestBuilder</p>
  
  <pre><code>            final RemoteViews fViews = views;
              final int fViewId = viewId;
  
              Runnable myRunnable = new Runnable() {
                  @Override
                  public void run() {
  
                      GenericRequestBuilder&lt;Uri, InputStream, SVG, Bitmap&gt; requestBuilder;
  
                      requestBuilder = Glide.with(mContext)
                              .using(Glide.buildStreamModelLoader(Uri.class, mContext), InputStream.class)
                              .from(Uri.class)
                              .as(SVG.class)
                              .transcode(new SvgBitmapTranscoder(), Bitmap.class)
                              .sourceEncoder(new StreamEncoder())
                              .cacheDecoder(new FileToStreamDecoder&lt;SVG&gt;(new SvgDecoder()))
                              .decoder(new SvgDecoder())
                              .placeholder(R.drawable.ic_launcher)
                              .error(R.drawable.no_icon)
                              .diskCacheStrategy(DiskCacheStrategy.SOURCE)
                              .load(Uri.parse(url));
  
                      requestBuilder.into(new SimpleTarget&lt;Bitmap&gt;() {
                                  @Override
                                  public void onResourceReady(Bitmap resource, GlideAnimation&lt;? super Bitmap&gt; glideAnimation) {
                                      fViews.setImageViewBitmap(fViewId, resource);
                                  }
                              });
                  }
              };
              mainHandler.post(myRunnable);
  </code></pre>
  
  <ul>
  <li>I had to use a Runnable as requestBuilder.into needs to run on the main thread.</li>
  </ul>
  
  <p>How can I get a Bitmap to later use it with a RemoteView?</p>