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.
精彩评论