I've a problem with this code:

public class Xml extends Activity {
        /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.liste);
    }

        public static  ArrayList<ArrayList> renvoi_liste_recette_xml() throws
Exception{


          ArrayList<ArrayList> aTableRetour = new ArrayList<ArrayList>();
          URL myURL = new URL("http://benji.roullet.free.fr/recette.xml";);
          DocumentBuilderFactory fabrique = DocumentBuilderFactory.newInstance
();
          DocumentBuilder constructeur = fabrique.newDocumentBuilder();
          Document document = constructeur.parse(myURL.openStream());
          Element racine = document.getDocumentElement();
          NodeList liste = racine.getElementsByTagName("recette");
          for(int i=0; i<liste.getLength(); i++){
                  ArrayList<String> aTableauTmp =  new ArrayList<String>();
                  Element E1= (Element) liste.item(i);
                  //aTableRetour[i]= "";
                  aTableauTmp.add(E1.getAttribute("nom"));
                  aTableRetour.add(aTableauTmp);
          }

          return aTableRetour;

        }
        ArrayList listeRecette = renvoi_liste_recette_xml();

        ListView mRecetteList = (ListView) findViewById(android.R.id.list);
    SimpleAdapter mSchedule = new SimpleAdapter(this, listeRecette ,
R.layout.item,
           new String[] {"titre"}, new int[] { R.id.titre});

}

Eclipse say that "Default constructor cannot handle exception type
Exception thrown by implicit super constructor. Must define an
explicit constructor" but I don't understand what it's mean.
Someone can help me please ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to