Java – Multiple permissions in AndroidManifest?

Multiple permissions in AndroidManifest?… here is a solution to the problem.

Multiple permissions in AndroidManifest?

So I’m wondering if there’s a rule that prohibits using multiple “uses-permission” blocks in my app. For example:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET"/>

When I use it in my app, I crash as soon as I click the button on it.

Note: My button saves the file to the SD card and uploads it to FTP (that’s where I’m stuck – add internet section).

Any ideas?

Solution

It can be as many usage rights as the application needs in the list file.

Related Problems and Solutions