misskossi Posted April 11, 2011 Share Posted April 11, 2011 Bonjour, Je souhaiterai créer une application (PC) en java, qui testerai si une application (android) est valide ou pas. Le problème est que je souhaiterai parser le manifest avec un parser type API Sax. Lorsque que je lance mon parser il ne me retourne rien dans pour la valeur des attributs: static void printAll(){ List listEtudiants = racine.getChildren("uses-permission"); int j=0; Iterator i = listEtudiants.iterator(); while(i.hasNext()) { j++; Element courant = (Element)i.next(); System.out.println(courant.getAttributeValue("android:name")); System.out.println("la valeur de courant est : "+ courant.getName()); System.out.println("i : " + j); // System.out.println(courant.getChild("uses-permission")); } } Je pense que le problème viendrai du formats des attributs (android:....). Quelqu'un aurait-il une idée? Merci d'avance! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.