I am developing an e-commerce android application. Consider App B is my app. And in App B we have a wallet to pay for the things. Now the requirement is, there is some other app consider App A is trying to pay with App B using Deeplink.
Uri myAction = Uri.parse("myapp://open/myAction?name=" + name + "~" + Phone + "~" + Email);
Intent mapIntent = new Intent(Intent.ACTION_VIEW, myAction);
PackageManager packageManager = getPackageManager();
List<ResolveInfo> activities = packageManager.queryIntentActivities (mapIntent, 0);
boolean isIntentSafe = activities.size() > 0;
if (isIntentSafe) {
startActivityForResult(mapIntent, 101);
}
By this way, I am calling App B
after completing the payment in App B I moved to App A. How to achieve this one from App B
for clear info look at the image
Thanks in advance for the timing help.