Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.util.Log;
import java.io.File;

public class Main {
    public static File loadFromFile(String filename) {
        try {
            File f = new File(filename);
            if (!f.exists()) {
                return null;
            }
            //           Bitmap tmp = BitmapFactory.decodeFile(filename);
            return f;
        } catch (Exception e) {
            Log.d("Exception", e.getMessage());
            return null;
        }
    }
}