read text from website
<p>i work with the emulator and try to get a text from a website.The error of the alertdialog: "the application mainactivity has
stopped unexpectedly. Please try again".</p>

<pre><code>    public void testr(View view) throws IOException, URISyntaxException 
  {
     URL websiteurl = new URL("http://test...");
     BufferedReader in = new BufferedReader(
        new InputStreamReader(
       websiteurl.openStream()));

   String inputLine;
   AlertDialog alertbox = new AlertDialog.Builder(this).create();
   while ((inputLine = in.readLine()) != null)
   alertbox.setMessage(inputLine.toString());
   in.close();

 alertbox.show();

  }
</code></pre>
