다음 코드는 삼성 장치에서 GPS 설정 화면을 시작하지만 htc 장치에서는 설정 보안 화면을 시작합니다. 어떻게 장치와 독립적으로 gps 화면을 시작할 수 있도록 코드를 작성할 수 있습니까? 제발 도움은 대체 솔루션안드로이드에서 시작 GPS 설정 화면
final ComponentName toLaunch = new ComponentName("com.android.settings","com.android.settings.SecuritySettings");
final Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.setComponent(toLaunch);
startActivity(intent);
을 위해 도움이 될 것입니다 생각! 감사. – android
나를 위해 일했다 worked.thanks
–Intent intent1 = new Intent(); intent1.setClassName("com.android.settings", "com.android.settings.SecuritySettings"); context.startActivity(intent1);
나와 함께 사용해야하는 다른 사용자를 위해 : – eWizardII