launching gps setting screen in android

后端 未结 2 1247
萌比男神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 14:53

    Get rid of the setComponent() and addCategory() calls and see if that helps. You should not be using those in any case, particularly the ComponentName that hard-wires in invalid package and class names.

提交回复
热议问题