Skip to content

Commit

Permalink
docs(java): android: improve permission guide
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Sep 25, 2024
1 parent a1fe070 commit 6c0a07d
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 6c0a07d

Please sign in to comment.