title: AsyncTask Permission denied (missing INTERNET permission?)
body: <p>I am trying use AsyncTask to extract an image over the internet and display on the RecyclerViewer but I am getting the following error message, which's captured from my Exception in my doInBackground from my RecyclerViewAdapter class:</p>
  
  <pre><code>08-02 00:11:25.608: E/ImageDownload(5753): Download failed: Permission denied (missing INTERNET permission?)
  </code></pre>
  
  <p>See full version of AsyncTask sub-class below:</p>
  
  <pre><code> class GetImageFromNet extends AsyncTask&lt;String, Void, Bitmap&gt; {
  
  private RVAdapter.PersonViewHolder personViewHolder;
  private String url = "http://ia.media-imdb.com/images/M/MV5BNDMyODU3ODk3Ml5BMl5BanBnXkFtZTgwNDc1ODkwNjE@._V1_SX300.jpg";
  
   public GetImageFromNet(RVAdapter.PersonViewHolder personViewHolder){
       this.personViewHolder = personViewHolder;
   }
   protected Bitmap doInBackground(String... params) {
      try {
          InputStream in = new java.net.URL(url).openStream();
          Bitmap bitmap = BitmapFactory.decodeStream(in);
          return bitmap;
          //NOTE:  it is not thread-safe to set the ImageView from inside this method.  It must be done in onPostExecute()
      } catch (Exception e) {
          Log.e("ImageDownload", "Download failed: " + e.getMessage());
      }
      return null;
  }
  
  protected void onPostExecute(Bitmap bitmap) {
      if (isCancelled()) {
          bitmap = null;
      }
      personViewHolder.personPhoto.setImageBitmap(bitmap);
  }
  </code></pre>
  
  <p>I have no idea why I am getting above error since I have already added the following permission access in my AndroidManifest.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.xxx" &gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
  
          &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
          &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  
  
          &lt;activity
              android:name=".MainActivity"
              android:label="@string/app_name" &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;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Please help!</p>