I am using 3rd party file manager to pick a file (PDF in my case) from the file system.
This is how I launch the activity:
Intent i
If you want it short this should work.
Uri uri= data.getData(); File file= new File(uri.getPath()); file.getName();