public Bitmap getBitmap(String resourcePath) {
        // Check if uri exists
        Uri resourceUri = getUri(resourcePath, AssetUtil.RESOURCE_TYPE_DRAWABLE);
        if (resourceUri == Uri.EMPTY) return null;

        // Get bitmap from app resources
        if (resourcePath.startsWith("res://")) {
            return getBitmapFromDrawable(getResourceId(resourcePath, AssetUtil.RESOURCE_TYPE_DRAWABLE));

            // Get bitmap from file
        } else {
            try {
                return getBitmapFromUri(resourceUri);
            } catch (IOException exception){
                Log.e(TAG, "Could not get bitmap" + resourcePath, exception);
                return null;
            }
        }
    }
Get the bitmap for a resource path, which can be e.g. a res://, www or shared:// path.
@return The bitmap or null if the resource could not be found, or an {@link IOException} occurred.
src/android/util/AssetUtil.java