Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.app.Activity;

import android.database.Cursor;

import android.net.Uri;

public class Main {
    public static String getAbsoluteImagePath(Activity paramActivity, Uri paramUri) {
        Cursor localCursor = paramActivity.managedQuery(paramUri, new String[] { "_data" }, null, null, null);
        int i = localCursor.getColumnIndexOrThrow("_data");
        localCursor.moveToFirst();
        return localCursor.getString(i);
    }
}