title: ActivityManager <user-permission> permission not working
body: <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="per.sainik.activity"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk
      android:minSdkVersion="10"
      android:targetSdkVersion="10" /&gt;
  
  &lt;user-permission android:name="android.permission.GET_TASKS" &gt;
  &lt;/user-permission&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;activity android:name=".LogViewActivity" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
  
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>and </p>
  
  <pre><code>import android.app.Activity;
  import android.app.ActivityManager;
  import android.os.Bundle;
  import android.util.Log;
  
  public class LogViewActivity extends Activity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      ActivityManager activityManager = (ActivityManager) getApplication()
              .getSystemService(ACTIVITY_SERVICE);
      Log.v("LOG_SERVICE", activityManager.getRunningTasks(1).get(0)
              .toString());
  }
  </code></pre>
  
  <p>}</p>
  
  <p>It's getting exception , named : </p>
  
  <pre><code>01-05 14:55:05.207: E/AndroidRuntime(334): java.lang.RuntimeException: Unable to start activity ComponentInfo{per.sainik.activity/per.sainik.activity.LogViewActivity}: java.lang.SecurityException: Permission Denial: getTasks() from pid=334, uid=10037 requires android.permission.GET_TASKS
  </code></pre>
  
  <p>Getting permission problem. Any Help would be appreciated!! </p>