I came across with the following issue. I have an activity that uses to permissions: recording audio and writing to external storage and returns the result to those activities that started it with an intent. I want to make sure that only those other apps could launch it, that have both uses-permissions. I tried the following declaration in manifest file, but it seems to be incorrect, as android does not allow double use of android permission attribute in activity.
<activity
android:name="some_name"
android:label="some_label"
android:permission="android.permission.RECORD_AUDIO"
android:permission="android.permission.WRITE_EXTERNAL_STORAGE"
</activity>
Is there any way to make this possible with android?