SQlite-based table selection

just curious, I have a question!

My application is almost ready. I used bilingual (English / Tamil) when users choose their preferred language in the settings, and then the whole application is converted to that language (I used a custom language). Everything is working fine.

My question is: can we do the same with the SQlite database? that automatically retrieve locale-based data from the "country-en" or "country-ta" tables? there anyway? I heard that thr is a SQLiteOpenHelper.onConfigure (setLocale ()) method; set the locale in sqlitedatabase. I want to know how it works!

+3
source share
2 answers

Of course yes you can.

, "en" "ta".
- "SELECT FROM Country_" + yourLocale + "..." - .

"", int (0 = , 1 = tamil - , )...

- "... ... = 0"

+3

, , . (, ).

, ... ? , . ( ...) , . , , , , , !

, , .

+4

All Articles