Can not pass bitmap from activity to AIDL service
<p>I am trying to pass a bitmap which is created from DrawingCache (in my activity class) to the AIDL service. But that doesn't get passed to the Service. Even the storeImage method in my service doesn't prints my logs. Though if I take any bitmap (png) from the resources and then pass it from my activity to the AIDL service, it works.</p>

<p>Due to some restriction I can not add WRITE_EXTERNAL_STORAGE permission to my activity class, that is why I am passing this bitmap to service to store it in Sdcard. If temporarily I add this permission to my activity, and do storing process in activity class only then the image is properly stored. But if I put this image in resource folder and then send it over to the AIDL service, storeImage method is not called.</p>

<p>This code works on most of the devices but few of them doesn't work. Is this the bitmap created using view.getDrawingCache() is wrong?</p>

<p>Here is the code block:</p>

<pre><code> view.buildDrawingCache();
 bitmap = view.getDrawingCache();

 //This code block sends the bitmap to the service

if (logProvider != null &amp;&amp; logProvider.isServiceRunning()) {
    logProvider.storeBitmap(bitmap);
}
</code></pre>
