Thanks again for your help Yusuf
I can't say where it crashes because the logcat don't give me this
information.
For the tutorials i've done two of them. One with xml file and on
without it. But i'm using a parsing XML to populate my listview and no
one speak about it ...
So i've done a mix with a
> Do you see anythings wrong ?
No, but can you tell me where it crashes?
> I don't understand why you wrote "list" in "list.setAdapter" and why
> you wrote "this.android.R.layout.list_item, array_list" instead of
> "R.layout.list_item".
Sorry, my post had a typo. It should be this:
I've done some modifications to my code and eclipse don't find any
error but the emulator force my application to quit:
java class:
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFact
It's good but i've to write your code differently:
ArrayList array_list = renvoi_liste_recette_xml();
list.setAdapter(new ArrayAdapter(this,
R.layout.liste,array_list));
But an error stay in the part "list.setAdapter" (list cannot be
resolve)
I've an other question in my XML file (which name is l
It's good but i've to write your code differently:
ArrayList array_list = renvoi_liste_recette_xml();
list.setAdapter(new ArrayAdapter(this,
R.layout.liste,array_list));
But an error stay in the part "list.setAdapter" (list cannot be
resolve)
I've an other question in my XML file (which name is l
It's good but i've to write your code differently:
ArrayList array_list = renvoi_liste_recette_xml();
list.setAdapter(new ArrayAdapter(this,
R.layout.liste,array_list));
But an error stay in the part "list.setAdapter" (list cannot be
resolve)
I've an other question in my XML file (which name is l
It's good but i've to write your code differently:
ArrayList array_list = renvoi_liste_recette_xml();
list.setAdapter(new ArrayAdapter(this,
R.layout.liste,array_list));
But an error stay in the part "list.setAdapter" (list cannot be
resolve)
I've an other question in my XML file (which name is l
Thanks Yusuf it's answer my question for a part. Now i've change type
of ArrayList to ArrayList and i nearly understand
how display this in the theory but eclipse don't accepte your code. I
don't understand why you wrote "list" in "list.setAdapter" and why
you wrote "this.android.R.layout.list_it
Thanks Yusuf it's answer my question for a part. Now i've change type
of ArrayList to ArrayList and i nearly understand
how display this in the theory but eclipse don't accepte your code. I
don't understand why you wrote "list" in "list.setAdapter" and why
you wrote "this.android.R.layout.list_it
I'm not sure how you want to display a list of lists. For that you
might want some kind of tree widget, not a list view. But if you want
to display a list of string, use setAdapter():
list.setAdapter(new ArrayAdapter(this,
android.R.layout.list_item, array_list));
Does that answer your quest
Thank a lot for your help Casper yes i want to display this ArrayList:
public ArrayList renvoi_liste_recette_xml() throws
Exception{
ArrayList aTableRetour = new ArrayList();
URL myURL = new URL("http://benji.roullet.free.fr/testXml.xml";);
DocumentBuilderFactory fabri
Oops, that should say Activity rather than Intent:
> Or you could create a test Intent for the purpose:
Double oops, I did not see you wanted to display ArrayList>.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "An
You can always log the content and use LogCat to view the ouput.
Or you could create a test Intent for the purpose:
public class DumpArray extends ListActivity{
public void onCreate(Bundle savedInstance){
super.onCreate(savedInstance);
setListAdapter( new ArrayAdapter(this,
a
Nobody can help me ?
On 9 sep, 09:30, sweet wrote:
> Hello i'm new to android developping and i've done a function which
> return an arraylist type ArrayList.
> I would like to display this array list for see if my function work.
> Can you help me ?
> Thanks
> Sweet
--~--~-~--~~-
14 matches
Mail list logo