I'm developing an app that will handle calls from external applications, ask for some data to the user and return a small result. I already tried doing the interaction using intents and startActivityForResult.
The problem is that my app has an authentication process, and if I handle the call with the Login activity, and the user is already authenticated in my app, I will have to close the Login activity, open the Activity that asks for the data and loose my chance to return a result to the external app using setResult.
Is there any way to send the result back to the caller app from an activity other than the one that handles the intent-filter?
Also I was asked if it was possible to call my app on a different task, i.e. not having the activities of my app being part of the same process of the caller app.