launching gps setting screen in android

后端 未结 2 1268
萌比男神i
萌比男神i 2021-01-14 14:01

The following code is launching gps setting screen in samsung device but in htc device it is launching security screen of setting.How can i write code so that it will launch

2条回答
  •  灰色年华
    2021-01-14 15:02

    I think this code is helpful for you

    Intent intent1 = new Intent(); intent1.setClassName("com.android.settings", "com.android.settings.SecuritySettings"); context.startActivity(intent1);

提交回复
热议问题