开发者

Android Database: Alternate database for different locale?

开发者 https://www.devze.com 2023-01-29 19:13 出处:网络
I am trying to create localized versions of my application. The Localization article doesn\'t help me much, since it refers only to xml resources. How can I tell the app to use a different database fo

I am trying to create localized versions of my application. The Localization article doesn't help me much, since it refers only to xml resources. How can I tell the app to use a different database for each locale?

I am assuming it has something to do with the android_m开发者_运维问答etadata table that is required for each Android database, but I have yet to find a good explanation of how to go about this.


Call getResources().getConfiguration().getLocale() to get a Locale object. Use that to get the language (and variant) if needed, for use in a column or a table or a database filename.

0

精彩评论

暂无评论...
验证码 换一张
取 消