Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import java.io.File;
import java.io.FileInputStream;

public class Main {
    public static Bitmap loadBitmap(String path, String title) {
        Bitmap bitmap = null;
        try {
            File file = new File(path, title);
            bitmap = BitmapFactory.decodeStream(new FileInputStream(file));
        } catch (Exception e) {

        }
        return bitmap;
    }
}