Hello, i have a hashtable filled with data, but i dont know the keys How can i loop thorugth a HashTable keys in android? Im trying this, but it doesnt work
Hashtable output=new Hashtable(); output.put("pos1","1"); output.put("pos2","2"); output.put("pos3","3");
ArrayList mykeys=(ArrayList)output.keys();
for (int i=0;i< mykeys.size();i++){
txt.append("\n"+mykeys.get(i));
}