title: Strange AsyncTask Behavior
body: <p>I have successfully set up 2 items on the action bar to open up 2 seperate Async Tasks to perform different tasks in the background.</p>
  
  <p>My first item launches an AsyncTask class that will only download the images and save them to the SD card.</p>
  
  <p>My Second item launches an AsyncTask class that will download the image, then set it as the users wallpaper.</p>
  
  <p>The issue that I'm having is that when the second item is pressed(Setwallpaper), it will do the 2 tasks at the same time that have been separated by the 2 classes(Save and set the users wallpaper). </p>
  
  <p>Then, when I remove the other launch code(setwallpaper/vice versa) it will just do the one task, not 2 at the same time.</p>
  
  <p>I have no idea why this behaving like this, would someone help me out. Thanks...</p>
  
  <p>Code:</p>
  
  <pre><code>@Override
  public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
      // TODO Add your menu entries here
      super.onCreateOptionsMenu(menu, inflater);
      inflater.inflate(R.menu.test, menu);
  
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
      switch (item.getItemId()) {
  
      case R.id.SaveWallpaper:
  
          new SaveWallpaperAsync(getActivity()).execute(mImageUrl);
  
          return true;
  
  
  
      case R.id.SetWallpaper:
  
          new SetWallpaperAsync(getActivity()).execute(mImageUrl);
  
          return true;
      }
      return super.onOptionsItemSelected(item);
      }  
  </code></pre>