title: Decoding SVG image to bitmap
body: <p>I am using Android Studio to convert my SVG image to XML file . It works fine when I try to access it using R.drawable.svgimage but now I need to decode that image to bitmap. </p>
  
  <p>I tried the following. It returns null for the bitmap.</p>
  
  <pre><code>mResId = R.drawable.svgimage
  BitmapFactory.Options options = new BitmapFactory.Options();
  options.inPreferredConfig = Bitmap.Config.ARGB_8888;
  Bitmap bitmap = BitmapFactory.decodeResource(
              mContext.getResources(), mResId, options); 
  </code></pre>