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
Thanks Yusuf it's answer my question for a part. Now i've change type
of ArrayListArraylist to ArrayListString 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
Thanks Yusuf it's answer my question for a part. Now i've change type
of ArrayListArraylist to ArrayListString 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
It's good but i've to write your code differently:
ArrayListString array_list = renvoi_liste_recette_xml();
list.setAdapter(new ArrayAdapterString(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
It's good but i've to write your code differently:
ArrayListString array_list = renvoi_liste_recette_xml();
list.setAdapter(new ArrayAdapterString(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
It's good but i've to write your code differently:
ArrayListString array_list = renvoi_liste_recette_xml();
list.setAdapter(new ArrayAdapterString(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
It's good but i've to write your code differently:
ArrayListString array_list = renvoi_liste_recette_xml();
list.setAdapter(new ArrayAdapterString(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
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
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:
Nobody can help me ?
On 9 sep, 09:30, sweet brou...@gmail.com wrote:
Hello i'm new to android developping and i've done a function which
return an arraylist type ArrayListArrayList.
I would like to display this array list for see if my function work.
Can you help me ?
Thanks
Sweet
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
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 ArrayListArrayList?
.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Thank a lot for your help Casper yes i want to display this ArrayList:
public ArrayListArrayList renvoi_liste_recette_xml() throws
Exception{
ArrayListArrayList aTableRetour = new ArrayListArrayList();
URL myURL = new URL(http://benji.roullet.free.fr/testXml.xml;);
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 ArrayAdapterString(this,
android.R.layout.list_item, array_list));
Does that answer
14 matches
Mail list logo