title: Resources$NotFoundException: Resource ID #0x0 in AlertDialog
body: <p>I have a <code>RecyclerView</code>, and in its adapter, I have created something similar to an <code>OnLongClickListener</code>, which I am calling an <code>OnEntryLongClickListener</code> to avoid confusion.</p>
  
  <p>I am using an <code>AlertDialog</code> to display a dialog with list items for different actions. However, I am getting the following error:</p>
  
  <pre><code>E/AndroidRuntime: android.content.res.Resources$NotFoundException: Resource ID #0x0  
      at android.content.res.Resources.getValue(Resources.java:2345)  
      at android.content.res.Resources.loadXmlResourceParser(Resources.java:3910)  
      at android.content.res.Resources.getLayout(Resources.java:2161)  
      at android.view.LayoutInflater.inflate(LayoutInflater.java:413)  
      at android.view.LayoutInflater.inflate(LayoutInflater.java:366)  
      at android.support.v7.app.AlertController$AlertParams.createListView(AlertController.java:734)  
      at android.support.v7.app.AlertController$AlertParams.apply(AlertController.java:711)  
      at android.support.v7.app.AlertDialog$Builder.create(AlertDialog.java:883)
      at com.mycompany.myapp.ThisActivity$2.onEntryLongClick(ThisActivity.java:135)  
      at com.mycompany.myapp.adapter.RVAdapter$RVViewHolder.onLongClick(RVAdapter.java:41)   
      at android.view.View.performLongClick(View.java:5236)  
  </code></pre>
  
  <p>Below is the relevant code I am using:</p>
  
  <pre><code>adapter.setOnEntryLongClickListener(new RVAdapter.OnEntryLongClickListener() {
      @Override
      public void onEntryLongClick(View view, int position) {
          final MiniEntry thisEntry = entryList.get(position);
          AlertDialog.Builder builder = new AlertDialog.Builder(getBaseContext());
          builder.setTitle(thisEntry.getEntryName()););
          builder.setItems(R.array.quickActions, new DialogInterface.OnClickListener() {
              public void onClick(DialogInterface dialog, int which) {
                  // Other code here
              }
          });
          AlertDialog alert = builder.create(); // The error log points to this line
          alert.show();
      }
  });
  mRecyclerView.setAdapter(adapter);
  </code></pre>
  
  <p>As well as the XML I am using for the array:</p>
  
  <pre><code>&lt;string-array name="quickActions"&gt;
      &lt;item&gt;Add to Favourites&lt;/item&gt;
      &lt;item&gt;More information&lt;/item&gt;
  &lt;/string-array&gt;
  </code></pre>
  
  <p>I'm not sure if it matters, but I am importing the <code>AlertDialog</code> from <code>android.support.v7.app.AlertDialog</code> (from the v7 Support Library).</p>
  
  <p>How can I solve this problem?</p>