locationmanager - Android: Get current location in China -


i need current location in china current location manager not working in china.its not showing latitude , longitude. please tell me how can this? many thanks

fact 1: google services blocked in china.

fact 2: although gives feeling aosp nothing google, it's not.

the truth once used network_provider location, message send google location server check out location, , returned location you. reason every chinese knows about, can't access server, that's why when combine network_provider , gps_provider together, debug codes in room, nothing returned(gps not accessible in room).

solution:

  1. use android rom modified chinese company xiaomi, meizu etc. these roms modify framework , redirect network_provider message other servers.

  2. use third-party location service baidu location sdk.


Comments

Popular posts from this blog

Prolog - Listing -

orchardcms - change base url in local copy in Orchard CMS -

linear regression - Trying to get confidence/prediction intervals with `predict.lm` in R, but I keep getting an error regarding my dichotomous variable -