PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
This content comes from an automatic translation.
  • Retrieve the list of addresses
  • Application in the background: Android 10 specific case
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Starts the native mapping application of the device to display:
  • a specific geographical position,
  • an itinerary between two positions.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Android Widget This function is now available in Android Widget mode.
Example
// Starts the mapping application to display the itinerary// between the current position of the device and a location
MyPosition is geoPosition = GPSGetPosition()
MyAddress is Address = geoGetAddress("Eiffel Tower, Paris, France")
IF ErrorOccurred = False THEN
geoRunApp(MyPosition, MyAddress..Position)
END
Syntax

Displaying a geographical location Hide the details

<Result> = geoRunApp(<Position> [, <Zoom> [, <Display mode>]])
<Result>: Boolean
  • True if the application was started,
  • False otherwise. To find out the error details, use ErrorInfo.
<Position>: geoPosition variable
Name of the geoPosition variable corresponding to the geographical position (latitude and longitude) to display in the mapping application.
<Zoom>: Optional integer
Zoom level that must be applied to the map displayed in the mapping application. This value must be included between 1 (the entire Earth is displayed) and 23. If this parameter is not specified, the maximum zoom will be applied.
<Display mode>: Optional integer constant
Position display mode in the application:
geoMap2D
(default value)
The position is displayed on a two-dimensional map.
geoView360The position is displayed as images with a view at 360°. In this mode, the specified position must correspond to a position listed by the StreetView service of Google.

Displaying an itinerary between two positions Hide the details

<Result> = geoRunApp(<Start position> , <End position>)
<Result>: Boolean
  • True if the application was started,
  • False otherwise. To find out the error details, use ErrorInfo.
<Start position>: geoPosition variable
Name of the geoPosition variable corresponding to the geographical position (latitude and longitude) of the start point of the itinerary.
<End position>: geoPosition variable
Name of the geoPosition variable corresponding to the geographical position (latitude and longitude) of the end point of the itinerary.
Syntax available from version 170069

Displaying a marker in the mapping application Hide the details

<Result> = geoRunApp(<Position> , <Marker text>)
<Result>: Boolean
  • True if the application was started,
  • False otherwise. To find out the error details, use ErrorInfo.
<Position>: geoPosition variable
Name of the geoPosition variable corresponding to the geographical position (latitude and longitude) of the marker.
<Marker text>: Character string
Text to associate with the marker
Remarks

Retrieve the list of addresses

To retrieve the list of addresses corresponding to the description of a location or to a geographical position, use geoGetAddress.
Versions 25 and later
AndroidAndroid Widget

Application in the background: Android 10 specific case

From Android 10, it is no longer possible to open a window when the application is in the background.
geoRunApp can open a window. If this function is used while the application is in the background, a fatal error will occur.
Tips:
  • It is possible to determine if the application is in the background using InBackgroundMode.
  • If an application needs to interact with the user while it is in the background, the solution is to display a notification (via the Notification type). When the notification is clicked on, the application will be brought back to the foreground if ..ActivateApplication is set to True. It is also possible to open a window from the procedure passed to ..ActionClick.
New in version 25
AndroidAndroid Widget

Application in the background: Android 10 specific case

From Android 10, it is no longer possible to open a window when the application is in the background.
geoRunApp can open a window. If this function is used while the application is in the background, a fatal error will occur.
Tips:
  • It is possible to determine if the application is in the background using InBackgroundMode.
  • If an application needs to interact with the user while it is in the background, the solution is to display a notification (via the Notification type). When the notification is clicked on, the application will be brought back to the foreground if ..ActivateApplication is set to True. It is also possible to open a window from the procedure passed to ..ActionClick.
AndroidAndroid Widget

Application in the background: Android 10 specific case

From Android 10, it is no longer possible to open a window when the application is in the background.
geoRunApp can open a window. If this function is used while the application is in the background, a fatal error will occur.
Tips:
  • It is possible to determine if the application is in the background using InBackgroundMode.
  • If an application needs to interact with the user while it is in the background, the solution is to display a notification (via the Notification type). When the notification is clicked on, the application will be brought back to the foreground if ..ActivateApplication is set to True. It is also possible to open a window from the procedure passed to ..ActionClick.
Minimum version required
  • Version 17
Comments
Video Trajeto Mapa



https://youtu.be/bSk0ysOlacE
amarildo
03 Nov. 2018