Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import android.net.Uri;
import android.support.annotation.NonNull;

public class Main {
    /**
     * Convert R id into a Uri which can be used for pushing that image etc to the UI
     *
     * @param resourceId
     * @return
     */
    @NonNull
    public static Uri getResourceUri(@NonNull final int resourceId) {
        return Uri.parse("android.resource://com.futurice.vor/" + resourceId);
    }
}