Skip to content

Commit

Permalink
Merge pull request #391 from apivideo/feature/java_readme_android_per…
Browse files Browse the repository at this point in the history
…missions

docs(java): android: improve permission guide
  • Loading branch information
ThibaultBee authored Sep 25, 2024
2 parents a1fe070 + 6c0a07d commit fbacfa1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/java/libraries/okhttp-gson/README.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ To upload a video, you have 3 differents methods:

## Permissions

You have to add the following permissions in your `AndroidManifest.xml`:
If your video files are located in the media store, you have to add the following permissions in your `AndroidManifest.xml`:

```xml
<uses-permission android:name="android.permission.INTERNET" />
Expand All @@ -166,6 +166,8 @@ You have to add the following permissions in your `AndroidManifest.xml`:

Your application also has to dynamically request the `android.permission.READ_EXTERNAL_STORAGE` permission to upload videos.

If your video files are located in the app-specific storage, you don't need to request any permissions nor add any permissions to your `AndroidManifest.xml`.

### WorkManager

To upload with the `WorkManager`, you also have to add the following lines in your `AndroidManifest.xml`:
Expand Down

0 comments on commit fbacfa1

Please sign in to comment.