title: Use Picasso to load installed apps icon
body: <ul>
  <li>I want to get all installed apps icon:</li>
  </ul>
  
  <p>AppDetail</p>
  
  <pre><code>public class AppDetail {
  private CharSequence name; // Ex: com.google.youtube
  private CharSequence label; // Ex: Youtube
  private Drawable icon;
  
  // Getters and setters
  ...
  }
  </code></pre>
  
  <p>AllAppsActivity // Here I can get all apps icon</p>
  
  <pre><code>private void loadAllApps() {
      packageManager = this.getPackageManager();
      appDetailList = new ArrayList&lt;AppDetail&gt;();
  
      Intent i = new Intent(Intent.ACTION_MAIN, null);
      i.addCategory(Intent.CATEGORY_LAUNCHER);
      List&lt;ResolveInfo&gt; availableActivities = packageManager.queryIntentActivities(i, 0);
  
      for (ResolveInfo ri : availableActivities) {
          AppDetail appDetail = new AppDetail();
          appDetail.setLabel(ri.loadLabel(packageManager));
          appDetail.setName(ri.activityInfo.packageName);
          appDetail.setIcon(ri.activityInfo.loadIcon(packageManager));
          appDetailList.add(appDetail);
      }
  }
  </code></pre>
  
  <p>Now I want to use Picasso to load all icons, but Picasso requires File/String path/int resouce ID/Uri uri for load() function
  What should i do? Thanks in advance</p>