title: How to relase bitmap from a return method correctly?
body: <p>Will this method will recycle the bitmap in <code>imageUtils.mediaImageToBitmap(image, activity);</code>?.</p>
  <p>because I can't put recycle after the <code>return methodBitmap;</code></p>
  <pre class="lang-java prettyprint-override"><code>Bitmap bitmap = imageUtils.mediaImageToBitmap(image, activity);
  //some process
  ...
  //some process
  bitmap.recycle();
  </code></pre>
  <h1>Update</h1>
  <p>After I'm done I put bitmap.recycle() but in <code>imageUtils.mediaImageToBitmap(image, activity);</code> there's a bitmap inside that function, does it require to be recycle as well?</p>
  <p>or</p>
  <p><code>bitmap.recycle()</code>   will automatically recycle the bitmap inside <code>imageUtils.mediaImageToBitmap(image, activity);</code>?</p>
  <pre class="lang-java prettyprint-override"><code>    public Bitmap mediaImageToBitmap(Image image, Context context) {
          Bitmap bitmap;
          //Do I need to do bitmap recycle in this method's Java Class?
          //or 
          //The other class that call this method 
          //Bitmap bitmap = imageUtils.mediaImageToBitmap(image, activity);
          //Then bitmap.recycle is enough?
          return bitmap;
      }
  </code></pre>