Code example for AlertDialog.Builder

Methods: create, setAdapter, setIcon, setOnCancelListener, setTitle

0
      var4.put("icon", var9);
      this.mItems.add(var4);
   } 
 
   private Dialog createAddAttachmentDialog() {
      Builder var1 = new Builder(this);
      Builder var2 = var1.setIcon(2130837582);
      Builder var3 = var1.setTitle(2131165244);
      this.populateItems();
      String[] var4 = new String[]{"text", "icon"};
      int[] var5 = new int[]{2131558454, 2131558453};
      List var6 = this.mItems;
      SimpleAdapter var8 = new SimpleAdapter(this, var6, 2130903052, var4, var5);
      var1.setAdapter(var8, this);
      var1.setOnCancelListener(this);
      return var1.create();
   } 
 
   private void onAddMusic() { 
      Intent var1 = new Intent("android.intent.action.GET_CONTENT");
      Intent var2 = var1.addCategory("android.intent.category.OPENABLE");
Stop searching for code, let great code find you!  Add Codota to your java IDE