How to Obtain the Current Location of a Terminal: Difference between revisions

From wizarPOS
No edit summary
No edit summary
Line 1: Line 1:
Please refer to the [https://developer.android.com/training/location/index.html User Location] of the Android SDK.
== Overview: ==
 
This guide demonstrates how to develop a simple application using the Android SDK that tracks the [https://developer.android.com/training/location/index.html User Location]. You can download [http://ftp.wizarpos.com/advanceSDK/GPSDemo_en_AS.zip the demo].
A simple demo develop using Android SDK, please [http://ftp.wizarpos.com/advanceSDK/GPSDemo_en_AS.zip downlod here].
== Handling Different Terminal Models (Q2/K2): ==
 
* '''Terminals Without GPS Module:''' For terminals lacking a GPS module, location tracking relies on network-based location services.
  Note that in Q2/K2, if you use a terminal without a GPS module, it depends on the network location. To use network location, please make sure in the terminal, Location is On and Location mode is High accuracy or Battery saving.
* '''Settings for Accurate Location:''' Ensure that the 'Location' setting on the terminal is turned on. For better accuracy, set the Location mode to either 'High accuracy' or 'Battery saving'.
  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 [http://ftp.wizarpos.com/advanceSDK/MozillaNlpBackend_org.microg.nlp.backend.ichnaea_20033-q1_platform.apk backend apk] and [http://ftp.wizarpos.com/advanceSDK/unifiednlp-app-NetworkLocation-release_1.6.9_NoUI-q1_platform.apk nlp apk], restart the device, and the application can get the location correctly.
== Working with Devices without Google Play Services: ==
* '''Importance for Network Provider-Based Applications:''' If your application uses a network provider for location services and is running on a device without Google Play Services, additional steps are necessary.
* '''Installing Required APKs:''' Download and install the [http://ftp.wizarpos.com/advanceSDK/MozillaNlpBackend_org.microg.nlp.backend.ichnaea_20033-q1_platform.apk backend apk] and [http://ftp.wizarpos.com/advanceSDK/unifiednlp-app-NetworkLocation-release_1.6.9_NoUI-q1_platform.apk nlp apk] on the device.
* '''Device Restart:''' After installation, restart the device to ensure proper functioning.
* '''Result''': Post-restart, the application should be able to accurately fetch the location.

Revision as of 21:12, 8 January 2024

Overview:

This guide demonstrates how to develop a simple application using the Android SDK that tracks the User Location. You can download the demo.

Handling Different Terminal Models (Q2/K2):

  • Terminals Without GPS Module: For terminals lacking a GPS module, location tracking relies on network-based location services.
  • Settings for Accurate Location: Ensure that the 'Location' setting on the terminal is turned on. For better accuracy, set the Location mode to either 'High accuracy' or 'Battery saving'.

Working with Devices without Google Play Services:

  • Importance for Network Provider-Based Applications: If your application uses a network provider for location services and is running on a device without Google Play Services, additional steps are necessary.
  • Installing Required APKs: Download and install the backend apk and nlp apk on the device.
  • Device Restart: After installation, restart the device to ensure proper functioning.
  • Result: Post-restart, the application should be able to accurately fetch the location.