Hello.

I have an app that has 3 string arrays. These arrays are coded in both
default english and spanish.

When I update my lists with 2 of the string arrays, they use the
correct language if I change my locale on the phone.

The 3rd array is used as a suggestion list for a search function
(using the startSearch() method). I have a content provider that
updates the list based on the R.array.name, it seems that never seems
to be updated (ie, always shows up in english).

Is there another setting I have to use for it?

I am using it like this inside my class:

public class LocationProvider extends ContentProvider {

@Override
public boolean onCreate(){
Resources resources = getContext().getResources();
LocationList.fill(resources);
return true;

}

The fill method does some other stuff, but I have just echoed out to
logCat to see what is happening:

public void fill(Resources res){
String[] locations = res.getStringArray(R.array.name);
//TEST to see what is in R.array.name
for(int i =0;i<10;i++){
System.out.println(locations[i]);
}
}

In each print statement, it is just the english value that is being
display. Even when I change locale to spanish, run the application,
all my strings are correctly showing spanish except for this list.

Any help or suggestions would be appreciated.

Regards,

Steven Gillan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to