Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.io.File;
import java.io.IOException;

import android.util.Log;

public class Main {
    public static String getAbsPath(File file) {
        String path = null;
        try {
            path = file.getCanonicalPath();
        } catch (IOException e) {
            path = file.getAbsolutePath();
            Log.i("[explorer():]", e.toString());
        }

        return path;
    }
}