Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

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

public class Main {
    @Nullable
    public static Uri createResUri(int resInt) {
        if (resInt <= 0) {
            return null;
        }
        return Uri.parse("res:///" + resInt);
    }
}