This does not work either, the returned ID is always 0. The items for
which I am trying to retrieve an ID are in res/values/array.xml and
defined as:
string-array name=itemName
item value1 @ value2 /item
item value3 @ value3 /item
/string-array
The user would have selected from another
On Mar 1, 11:29 am, Alain aarn...@gmail.com wrote:
This does not work either, the returned ID is always 0. The items for
which I am trying to retrieve an ID are in res/values/array.xml and
defined as:
string-array name=itemName
item value1 @ value2 /item
item value3 @ value3 /item
I think we need to help you clear up your model of the language. I've
been trying to figure out what computer language is your main
language, but I can't quite figure it out -- but it's not Java, I
don't think. If you tell us, maybe we can explain a bit better, but
I'll give it a shot anyway.
At
Alain wrote:
Mark,
I tried your suggestion with this code, but this throws an exception.
String varName = R.array.+itemName[listaa_position];
int itemsid=getResources().getIdentifier(varName, null,
getPackageName());
items = getResources().getStringArray(itemsid);
The
Mark,
I tried your suggestion with this code, but this throws an exception.
String varName = R.array.+itemName[listaa_position];
int itemsid=getResources().getIdentifier(varName, null,
getPackageName());
items = getResources().getStringArray(itemsid);
The itemName[] are
5 matches
Mail list logo