current location is always null

后端 未结 6 1881
独厮守ぢ
独厮守ぢ 2021-02-04 22:39

I am trying to retrieve my current location on the button click in an editbox using gps or network..i have tried all possible methods which i found in tutorials and older posts.

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-04 22:59

    Android 2.3.x SDK (API 9 and 10) emulator has bug with GPS. You should try your code on 2.2 (API 8)

提交回复
热议问题