[android-developers] Re: CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Graham Bright
Thanks, That worked fine fine, I'm new to this stuff :) maybe I could use the following to feed the data to an ArrayAdapter from the Hashmap which is declared outside of MyClass not sure if that would work new ArrayListString(myHashMap.keySet()), assuming myHashMap is a HashMapString,

Re: [android-developers] Re: CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Justin Anderson
maybe I could use the following to feed the data to an ArrayAdapter from the Hashmap which is declared outside of MyClass not sure if that would work new ArrayListString(myHashMap. keySet()), assuming myHashMap is a HashMapString, Something. Then your ArrayList would only have half the

Re: [android-developers] Re: CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Graham Bright
Hi, So I have something like this now * public class listmodified extends ListActivity implements OnGestureListener { //public ArrayListString myList = new ArrayListString(Arrays.asList(items)); public MapInteger, String myHashMap; { String Result=;

Re: [android-developers] Re: CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Justin Anderson
*myHashMap.keySet().toArray();* *myHashMap.values().toArray();* These lines of code aren't doing anything... *Result = : + myHashMap.keySet().toArray() + myHashMap.values().toArray();* Other than for debugging, I can't see any possible use for this What are you wanting to do with