Code example for Resources

0
 
    @Override 
    @Implementation 
    public Resources getResources() {
        if (resources == null ) {
            resources = ShadowResources.bind(new Resources(realApplication.getAssets(), null, new Configuration()), resourceLoader);
        } 
        return resources;
    } 
 
    /** 
     * Reset (set to null) resources instance, so they will be reloaded next time they are 
     * {@link #getResources gotten} 
     */ 
    public void resetResources(){ 
        resources = null;
    } 
 
    @Implementation 
    @Override 
    public ContentResolver getContentResolver() {