ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Mobile specific functions / Phone functions
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
AndroidActivityResultProcedure (Function)
In french: AndroidActivityResultProcédure
Allows you to specify the procedure to be called to get the result returned by a third-party Activity.
Remark: In a WINDEV Mobile application, you can use external libraries and APIs. In Android, some libraries and APIs open specific windows, known as "Activities", which perform specific processes: payment with mobile devices, toggle Bluetooth visibility, OAuth login, etc.
Example
AndroidActivityResultProcedure((resultCode, requestCode, Uri, extras)=>{
IF resultCode = -1 _AND_ requestCode = 1024 THEN
FOR EACH ELEMENT value OF extras
...
END
END
})
Syntax
AndroidActivityResultProcedure([<WLanguage procedure>])
<WLanguage procedure>: Optional procedure name
Name of the WLanguage procedure ("callback") called when the application needs to get the result returned by a third-party activity.
For more details on this procedure, see Parameters of the procedure used by AndroidActivityResultProcedure.
If this parameter is not specified, the procedure call will be canceled for the current window.
Remarks
  • This function can be used to get the result of an activity started by a call to the startActivityForResult method from an external library.
  • AndroidActivityResultProcedure is linked to the life cycle of the window from which it was executed. When the window is closed, the procedure will be automatically canceled. You can also call the function without passing the <Procedure> parameter to force this cancellation.
  • An error will occur if the function is called when no window is running.
Business / UI classification: Neutral code
Component: wd290android.aar
Minimum version required
  • Version 28
Comments
Click [Add] to post a comment

Last update: 06/30/2023

Send a report | Local help