Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
/*
 * This is the source code of DMPLayer for Android v. 1.0.0.
 * You should have received a copy of the license in this archive (see LICENSE).
 * Copyright @Dibakar_Mistry, 2015.
 */

import android.net.Uri;

import android.widget.ImageView;

public class Main {
    public static void settingPicture(ImageView imageView, Uri imageUri) {
        imageView.setImageURI(null);
        imageView.setImageURI(imageUri);
    }

    public static void settingPicture(ImageView imageView, int imageRes) {
        imageView.setImageResource(imageRes);
    }
}