[android-developers] Re: Get the file path from a URI instance

2009-09-12 Thread Bill
Actually this doesn't work. On Sep 2, 11:38 am, Dianne Hackborn hack...@android.com wrote: I'm sorry, but did you even try looking at the documentation?  It's not given a tricky name: getPath().  (If you are meaning you have put a relative path in, and want to get an absolute one back, well

[android-developers] Re: Get the file path from a URI instance

2009-09-12 Thread Dianne Hackborn
Doesn't work in what way? It is used all over the system -- for example this is how ContentResolver returns an InputStream to you from a file: URI: return new FileInputStream(uri.getPath()); On Sat, Sep 12, 2009 at 5:00 PM, Bill wrobb...@gmail.com wrote: Actually this doesn't

[android-developers] Re: Get the file path from a URI instance

2009-09-02 Thread Dianne Hackborn
I'm sorry, but did you even try looking at the documentation? It's not given a tricky name: getPath(). (If you are meaning you have put a relative path in, and want to get an absolute one back, well you can't, URI knows nothing about the semantics of a path in it nor how to do that kind of