Android Read Text File Into Dialog
<p>Hi so i have an app that downloads a text file from my server and what i want to then do is show a dialog that only has a message that is written in dynamically by the text file so for example say i have a text file with the following</p>

<blockquote>
  <p>This is my text file that contains some message and was downloaded from my server</p>
</blockquote>

<p>Now I want to create a simple dialog like this</p>

<pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(&lt;text from file goes here&gt;)
       .setCancelable(true)
       .setPositiveButton("Okay", new DialogInterface.OnClickListener() {
           public void onClick(DialogInterface dialog, int id) {
                dialog.cancel
           }
       }).show();
</code></pre>

<p>Any help on how i can read the text file and then write it into my dialog as a message would be greatly appreciated thanks for any help or suggestions</p>
