This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PackageManager packageManager = getPackageManager(); | |
| List<ResolveInfo> activities = packageManager.queryIntentActivities(intent, 0); | |
| boolean isIntentSafe = activities.size() > 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <PreferenceScreen | |
| android:title="@string/system_info" | |
| android:summary="@string/system_info_summary"> | |
| <intent android:action=".ui.SystemInfo" /> | |
| </PreferenceScreen> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| File file = new File("/system/etc/vold.fstab"); | |
| FileReader fr = null; | |
| BufferedReader br = null; | |
| try { | |
| fr = new FileReader(file); | |
| } catch (FileNotFoundException e) { | |
| e.printStackTrace(); | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| updateLanguage(Locale.SIMPLIFIED_CHINESE); | |
| updateLanguage(Locale.ENGLISH); | |
| .. | |
| .. | |
| .. | |
| .. | |
| private void updateLanguage(Locale locale) { | |
| Log.d("ANDROID_LAB", locale.toString()); |
NewerOlder