Java tutorial
//package com.java2s; import android.content.Context; import android.net.Uri; public class Main { public static String parseOwnUri(Uri uri, Context context) { if (uri == null) return ""; return uri.getEncodedPath(); } }