Activity.GetStartingIntent - SetActivityResult

vb1992

Well-Known Member
Licensed User
Longtime User
Is there any example code for:

Activity.GetStartingIntent / SetActivityResult - makes it possible to return results to 3rd party applications.

Or how/where would this be used, thanks.
SetActivityResult (Result As Int, Data As Intent)

(Advanced) Sets the result that the calling Activity will get after calling StartActivityForResult.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
GetStartingIntent is useful to find which intent caused your activity to start. There are some examples in the forum that use it.

I do not remember whether there is an example of SetActivityResult. It allows you to return a result to external apps that call startActivityForResult to start your app and get result. For example you can use it to build a file chooser app (with a defined external API).
 
Upvote 0
Top