issues with handling multiple languages on android
I ve been using google-api for my project therefore i need to display in other languages. I m using listview to show data. This code fails on assigning column values to "str" otherwise this code works fine without converting language. I need to convert language.
String str = cursor.getString(cursor.getColumnIndex("disease"));
String st = Translate.execute(str, Language.ENGLISH, Language.FRENCH);
开发者_Python百科 String[] column = new String[] {st};
adapter = new SimpleCursorAdapter(
this,
R.layout.list,
cursor,
column,
new int[] {R.id.Name});
setListAdapter(adapter);
use android localization concept.. http://developer.android.com/guide/topics/resources/localization.html
精彩评论