title: Alternative to using Toast
body: <p>Currently I am developing an episode guide application for a tv show. The basic structure is that the episodes are put into a list, and upon clicking a list item (aka an episode name) the episode description comes up in a Toast. </p>
  
  <p>This generally works fine, however there are situations in which the episode description is too long and one can't read it in the given time. </p>
  
  <p>Are there any alternatives to using a toast in this situation? Thanks for any help.</p>
  
  <p><strong>Edit:</strong></p>
  
  <pre><code>      @Override
    protected void onListItemClick(ListView l, View v, int position, long id) {
         //Toast.makeText(this, _details[position], Toast.LENGTH_LONG).show();
        AlertDialog.Builder builder = new AlertDialog.Builder(this);
        builder.setMessage(this, _details)
               .setCancelable(false)
               .setPositiveButton("Ok", new DialogInterface.OnClickListener() {
                   public void onClick(DialogInterface dialog, int id) {
                        dialog.cancel();
                   }
               });
    }
  </code></pre>
  
  <p>(I kept the toast part in there for reference as that was my previous code).</p>
  
  <p><strong>Correct Code</strong></p>
  
  <pre><code>      @Override
    protected void onListItemClick(ListView l, View v, int position, long id) {
         //Toast.makeText(this, _details[position], Toast.LENGTH_LONG).show();
        AlertDialog.Builder adb=new AlertDialog.Builder(CurrentActvity.this);
        adb.setTitle("Title");
        adb.setMessage(_details[position]);
        adb.setPositiveButton("Ok", null);
        adb.show();
    }
  </code></pre>