title: Passing List<classname> to ArrayAdapter
body: <p>The problem is this adapter is giving the error although i have pass the Object array to it.(Read the methods belows then you will find what i want to know from you guys)</p>
  
  <p>This method declares a List of private class objects. Then return that list of object to onPostExecute method.</p>
  
  <pre><code>private class DownloadXmlTask extends AsyncTask&lt;String, Void, String&gt; {
      @Override
      protected String doInBackground(String... urls) {
          try {
  
              return loadXmlFromNetwork(urls[0]);
  
          } catch (IOException e) {
              return "I/O exception ae hy";
          } catch (XmlPullParserException e) {
              return "XML pull parser ke exception ae hy";
          }
      }
  
      @Override
      protected void onPostExecute(List&lt;StackOverflowXmlParser.Entry&gt; result) {
          //Log.d(TAG,result.toString());
          ArrayAdapter&lt;String&gt; adapter;
          adapter = new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_list_item_1,result);
          setListAdapter(adapter);
      }
  
      private Object loadXmlFromNetwork(String urlString) throws XmlPullParserException, IOException {
          InputStream stream = null;
          // Instantiate the parser
          StackOverflowXmlParser stackOverflowXmlParser = new StackOverflowXmlParser();
          List&lt;StackOverflowXmlParser.Entry&gt; entries = null;
          String title = null;
          String url = null;
          String summary = null;
  
  
          try {
              stream = downloadUrl(urlString);
              entries = stackOverflowXmlParser.parse(stream);
  
          } finally {
              if (stream != null) {
                  stream.close();
              }
          }
          for (StackOverflowXmlParser.Entry entry : entries)
          {
              Log.d(TAG, entry.link + " /" + entry.title);
          }
  
              return entries;
      }
  </code></pre>