Android-ChangeLocaleExample-master

所属分类:android开发
开发工具:Java
文件大小:157KB
下载次数:1
上传日期:2016-12-29 06:02:10
上 传 者rain X
说明:  This is example how to change local on android 2.1 + using eclipse programmatic

文件列表:
.idea (0, 2016-03-15)
.idea\.name (8, 2016-03-15)
.idea\compiler.xml (711, 2016-03-15)
.idea\copyright (0, 2016-03-15)
.idea\copyright\profiles_settings.xml (74, 2016-03-15)
.idea\encodings.xml (166, 2016-03-15)
.idea\gradle.xml (562, 2016-03-15)
.idea\libraries (0, 2016-03-15)
.idea\libraries\appcompat_v7_19_0_1.xml (384, 2016-03-15)
.idea\libraries\support_v4_19_0_1.xml (500, 2016-03-15)
.idea\misc.xml (2777, 2016-03-15)
.idea\modules.xml (355, 2016-03-15)
.idea\scopes (0, 2016-03-15)
.idea\scopes\scope_settings.xml (139, 2016-03-15)
.idea\vcs.xml (166, 2016-03-15)
Location.iml (679, 2016-03-15)
app (0, 2016-03-15)
app\app.iml (5551, 2016-03-15)
app\build.gradle (517, 2016-03-15)
app\proguard-rules.txt (689, 2016-03-15)
app\src (0, 2016-03-15)
app\src\main (0, 2016-03-15)
app\src\main\AndroidManifest.xml (919, 2016-03-15)
app\src\main\ic_launcher-web.png (47072, 2016-03-15)
app\src\main\java (0, 2016-03-15)
app\src\main\java\com (0, 2016-03-15)
app\src\main\java\com\jordan (0, 2016-03-15)
app\src\main\java\com\jordan\location (0, 2016-03-15)
app\src\main\java\com\jordan\location\app (0, 2016-03-15)
app\src\main\java\com\jordan\location\app\MainActivity.java (2924, 2016-03-15)
app\src\main\res (0, 2016-03-15)
app\src\main\res\drawable-hdpi (0, 2016-03-15)
app\src\main\res\drawable-hdpi\ic_launcher.png (7783, 2016-03-15)
app\src\main\res\drawable-mdpi (0, 2016-03-15)
app\src\main\res\drawable-mdpi\ic_launcher.png (3760, 2016-03-15)
app\src\main\res\drawable-xhdpi (0, 2016-03-15)
... ...

Android-ChangeLocaleExample =========================== Android application to change locale in android device. This is a very simple sample application showing how to change device's language by programmatically. Don't work in Android 4.2+ because Google has changed protection_level of CHANGE_CONFIGURATION. > The protection level of CHANGE_CONFIGURATION (used to change language) permission has been changed to "system|signature|development" (v4.2) from "dangerous" (v4.1 and below). ### Workaround - Root devices; - Application signed by same key of ROM; - Application native (inside ROM package); - Using adb to give access (step-by-step below); #### Giving Access to CHANGE_CONFIGURATION with ADB (Android v4.2+): ```Java adb shell // pm grant android.permission.CHANGE_CONFIGURATION pm grant com.jordan.location.app android.permission.CHANGE_CONFIGURATION ```

近期下载者

相关文件


收藏者