开发者

Android Database: Alternate database for different locale?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜