0

I am developing a small list android application in which i have texts and images.Can anyone tell how should i pursue

Thanks in advance Tushar

1
  • do you want to show list on screen or just want to save data in a list??? Commented Mar 22, 2011 at 4:44

1 Answer 1

0

Take a look at http://developer.android.com/reference/java/util/List.html. Lists in android are not discriminatory - you can have several types of objects in them, just try to remember/ keep track of what kind of object you have in each place.

In order to add an element to the list it would be something like this

List myList = new List();    
myList.add(9);
myList.add("hola");

You can take a look at the rest of methods that list implement in the link that is at the beginning of the post.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.