PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Retrieving the list of addresses
  • Application in the background: Specific case from Android 10
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Starts the device's native maps application to display:
  • a specific geographical location,
  • a route between two locations.
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 maps application to display the route
// between the current location of the device and another 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 get the details of the error, use ErrorInfo.
<Position>: geoPosition variable
Name of the geoPosition variable corresponding to the geographical location (latitude and longitude) to display in the map application.
<Zoom>: Optional integer
Zoom level that must be applied to the map displayed in the maps 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
Location display mode in the application:
geoMap2D
(default value)
The location is displayed on a two-dimensional map.
geoView360The location is displayed as an image with a 360° view. In this mode, the specified location must correspond to a location listed in Google's StreetView.

Displaying a route between two locations Hide the details

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

Displaying a marker in the maps application Hide the details

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

Retrieving the list of addresses

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

Application in the background: Specific case from Android 10

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). The application will be brought back to the foreground when the notification is clicked, if the ActivateApplication property is set to True. You can also open a window from the procedure passed to the ActionClick property.
New in version 25
AndroidAndroid Widget

Application in the background: Specific case from Android 10

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). The application will be brought back to the foreground when the notification is clicked, if the ActivateApplication property is set to True. You can also open a window from the procedure passed to the ActionClick property.
AndroidAndroid Widget

Application in the background: Specific case from Android 10

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). The application will be brought back to the foreground when the notification is clicked, if the ActivateApplication property is set to True. You can also open a window from the procedure passed to the ActionClick property.
Component: wd270android.aar
Minimum version required
  • Version 17
Comments
Click [Add] to post a comment