Skip to content

Commit dddb7bf

Browse files
authored
Add Query-Requirement for Android 11 and later (#335)
Further information on the issue and source: https://stackoverflow.com/questions/62345805/namenotfoundexception-when-calling-getpackageinfo-on-android-11
1 parent a2b4abd commit dddb7bf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ compileOptions {
3131

3232
We use some features from Java 8, so your project needs also to be compiled with (at least) this version.
3333

34+
For Android 11 and later you may need to add queries to your app's manifest file. It will not find the nextcloud-app otherwise.
35+
36+
```
37+
<queries>
38+
<package android:name="com.nextcloud.client" />
39+
<package android:name="com.nextcloud.android.beta" />
40+
</queries>
41+
```
42+
3443
### 2) To choose an account, include the following code in your login dialog:
3544

3645
From an Activity

0 commit comments

Comments
 (0)