public int getResourceId(String resourceName, int resourceType) {
        // Get resource from App
        int resourceId = getResourceId(context.getResources(), resourceName, resourceType);
        
        // Get resource from system, if not found
        if (resourceId == 0) return getResourceId(Resources.getSystem(), resourceName, resourceType);

        return resourceId;
    }
Get the resource Id for a given resourceType. Searches in the App resources first, then in the system resources.
@param resourceName Can also be a resource path like "res://mySound", "res://myImage.png", etc.
@param resourceType Can be {@link AssetUtil#RESOURCE_TYPE_DRAWABLE} or {@link AssetUtil#RESOURCE_TYPE_RAW}
@return The resource ID or 0 if not found.
src/android/util/AssetUtil.java