Accepting intent data and returning data

LittleEddie

Member
Licensed User
Longtime User
I can't figure out how to do this,

Is this possible? I need to have my app called from a different app with data and then I need to return some data to the other app.

Yes, I know this is not the best way to handle things but I also help with a different basic that needs a on phone library to do things not possible in it but are in B4a.

I know most of it, set up Intent filters in the AndroidManifest file and all that.

How do I get the data included in the incoming intent into my app and how do I return

Basicly from the SDK I want to use
startActivityForResult(Intent, int)
onActivityResult(int, int, Intent)
setResult(int)

Thank you for any help

Ed
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You will not be able to it this way. You can start your application by sending an Intent. However currently you cannot read any data from this intent.

You can write the required data to a file. Start the other application which will read the data and write the new data to a second file. When the first application resumes it should check if the second file exists and read the data from it.
 
Upvote 0
Top