In android, I get a ParcelFileDescriptor after 开发者_高级运维I call mContext.getContentResolver().openFileDescriptor(contentURI, "r")
but how can I read the content of the file into a string or Stringbuffer?
Thank you.
I would recommend that you use openInputStream()
on ContentResolver
instead. Then, you just use normal Java I/O to read it in.
精彩评论