How to Obtain the Current Location of a Terminal
Please refer to the User Location of the Android SDK. We develop a simple demo using Android SDK, downlod here.
Note that in Q2/K2, if you use a terminal without a GPS module, it depends on the network location.
If an application runs in a device without Google play service, and the application uses a network provider to get the location, download and install the backend apk and nlp apk, restart the device, and the application can get the location correctly.