For intent Action, add/replace Target:Activity's "startActivity()" with "startActivityForResult()"

e.t.l

Member
When creating an intent targeting "Activity," I assume MD uses the code startActivity(). Could this be replaced with startActivityForResult() (documentation) without problem? If outright replacing it would cause issues in some cases, could an additional Target be added (or maybe a checkbox option within the Activity target input screen) to make the action call startActivityForResult()?

The benefit of this is that some apps, e.g. VPN apps, require incoming intents to use startActivityForResult().
https://github.com/schwabe/ics-openvpn/issues/1018 <- This is an example of a VPN issue caused by an automation app calling startActivity().
 

MacroDroidDev

Administrator
Staff member
I believe it should be possible to replace this without any side effect. I will try this change in the next beta release.
 

MacroDroidDev

Administrator
Staff member
Oops sorry I just realized this call is only possible when called from an activity, therefore it's not really possible to make this simple change.
 
Top