network provider not working in android

前端 未结 2 1586
别那么骄傲
别那么骄傲 2021-02-04 17:28

i have to make an android application in which i need to find the current location of the user. For this i am first using the GPS provider, but if it is not available i fall bac

2条回答
  •  旧时难觅i
    2021-02-04 18:35

    You have to activate location via network providers in the Settings menu, and if at the start of the app it is disabled, you can show a Toast to notify the user

提交回复
热议问题