public final InputStream openInputStream (Uri uri)
Since: API Level 1
Open a stream on to the content associated with a content URI. If there is no data associated with the URI, FileNotFoundException is thrown.
Accepts the following URI schemes:
- content (
SCHEME_CONTENT) - android.resource (
SCHEME_ANDROID_RESOURCE) - file (
SCHEME_FILE)
See openAssetFileDescriptor(Uri, String) for more information on these schemes.
Parameters
| uri | The desired URI. |
|---|
Returns
- InputStream
Throws
| FileNotFoundException | if the provided URI could not be opened. |
|---|
0 件のコメント:
コメントを投稿