jeudi 23 juin 2016

GPS tutorial

This example shows how to work with the GPS library.

View attachment 45297

The GPS object is declared in the Starter service. It is easier to put the GPS in a service and not in an Activity as the services life cycle is simpler.

When the program starts we check whether the location features are enabled:

Code:
  Sub Activity_Resume
If Starter.GPS1.GPSEnabled = False Then
ToastMessageShow("Please enable the GPS device.", True)...
GPS tutorial

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1Qh9UV1
via IFTTT

Aucun commentaire:

Enregistrer un commentaire