Android - Use language not available in documentation
I am currently developing an app which I want to support both danish and english. I know how things works with resource etc. My app is currently running Android 2.1 (since most people in Denmark use this), but as far as I know Locale for Denmark is first avaiable in Android 2.3 (documentaion).
What wonders me, is that i got a开发者_JAVA百科 couple of apps, which support danish language and runs on my phone (2.2). How is that possible?
Do they trick the system in some way, or do they just develop their application in Android 2.3 and make it runnable in lower version devices? Or is it possible to manipulate the native language with another app to make it "default".
I've searched around everywhere, but the danish Android community is very little.
It is actually possible to make a values-da with danish language even though it's not supported in Android 2.2 according to the documentation and it's working fine. Don't know why it did not work earlier today.
ADB will compile your resources into apk no matter what suffix the folder values
has (tested on values-qq
). So I assume you can just add the proper suffix for your language, and these resources will be just ignored on pre-Android-2.3.
精彩评论