I would like to get from sqlite value that will be different for OS language (localization). How to do this?
Creating table like this:
create table test (
_id integer primary key autoincrement,
some_value text,
some_value_en text
);
and get appropriate value (some_value or some_value_en) would be a good solution?
I’m not sure what you need that for, but you can use Android’s localization infrastructure to get the column name. Put “some_value” in a String resource in values\strings.xml, and override it in values-en\strings.xml with “some_value_en” .
SELECT according to the column name.