Different Android permissions levels
<p>What is the difference between asking for permission using <code>&lt;uses-permission&gt;</code>, and android:permission inside the application and activity tags?</p>

<p>When I only use:</p>

<pre><code> &lt;uses-permission android:name="android.permission.WAKE_LOCK"&gt;&lt;/uses-permission&gt;
</code></pre>

<p>The app runs fine, however if also I use:</p>

<pre><code>&lt;application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true" 
android:permission="android.permission.WAKE_LOCK"&gt;
</code></pre>

<p>or even:</p>

<pre><code>&lt;activity android:name=".android.Everlong"
          android:label="@string/app_name" android:screenOrientation="portrait" 
          android:permission="android.permission.WAKE_LOCK"&gt;
</code></pre>

<p>The app doesn't start because of a security error...</p>
