Here you can find the source of makeInputStream(Uri uri, ContentResolver cr)
private static ParcelFileDescriptor makeInputStream(Uri uri, ContentResolver cr)
//package com.java2s; import java.io.IOException; import android.content.ContentResolver; import android.net.Uri; import android.os.ParcelFileDescriptor; public class Main { private static ParcelFileDescriptor makeInputStream(Uri uri, ContentResolver cr) {/*from ww w . j a va2 s . c o m*/ try { return cr.openFileDescriptor(uri, "r"); } catch (IOException ex) { return null; } } }