title: Easiest way to use Picasso in notification (icon)
body: <p>I'm looking for an easy way to use Picasso to load a noticiation icon (which is a URL on a remote webpage). In a previous version of the app I'm working on this code seemed to work:</p>
  
  <pre><code>        Bitmap speakerPic = null;
          try {
              speakerPic = new AsyncTask&lt;Void, Void, Bitmap&gt;() {
                  @Override
                  protected Bitmap doInBackground(Void... params) {
                      try {
                          return Picasso.with(c).load(session.getSpeaker().getPhotoUrl()).get();
                      } catch (IOException e) {
                          e.printStackTrace();
                      }
                      return null;
                  }
              }.execute().get(1500, TimeUnit.MILLISECONDS);
          } catch (InterruptedException e) {
              e.printStackTrace();
          } catch (ExecutionException e) {
              e.printStackTrace();
          } catch (TimeoutException e) {
              e.printStackTrace();
          }
  
          if (speakerPic != null) {
              builder.setLargeIcon(speakerPic);
          } else {
              builder.setLargeIcon(BitmapFactory.decodeResource(c.getResources(), R.drawable.ic_launcher));
          }
  </code></pre>
  
  <p>But now I get an TimeOutException every time (and I fallback to a default icon in my res folder). I have to use this AsyncTask because Picasso (/network) may not happen on the UI thread. (although I'm blocking the UI thread for 1.5sec here..).</p>
  
  <p>I know Picasso can handle remoteviews, but I don't want to use a custom view for my notificiation. Also I couldn't find a way to get the RemoteView for the NoticifationIcon. </p>
  
  <p>Is there a way to set the icon of my notification simply using Picasso?</p>