I have two applications separately. Application for customers and sellers. I want to pay money for a client application and get a response to the seller’s application. Anyway, I have a deep binding concept included in the seller’s application. Client application: It contains three activity pages in the app.getting client applications (first activity page) and shows confirmation (second action), and payment - the third action. Note. Open the “Client” application using the “Sales” application, fill in all the data and payment from the client application and send a response to the “Seller” application. for this client side, I set the code for this:
Intent object = new Intent(); object.putExtra("data", "3434434343343"); setResult(Activity.RESULT_OK, object); finish();
for seller app code:
protected void onActivityResult(int ResCode, int ReqRes, Intent data) { super.onActivityResult(ResCode, ReqRes, data); if (ResCode == 1 && ReqRes == Activity.RESULT_OK && data != null) { String response = data.getStringExtra("data"); } }
Problem Here: on the client side Pass data successfully using setResult.then, seller application activity successfully calls onActivityResult, but, Intent data comes in only as NULL. Since here the client side uses several actions, using only then, I skip the result. It is my problem. In any case, to get onActivityResult from several actions with a chain of links (external application actions), this is useful for me.
Note. I found one solution if two applications have the same kind of activity. Its setresult and OnactivityResult correctly call and receive data. But my scenario, if for a few chain links for the Client Side application.
Please help get out with this problem. Thanks Advance
android android-intent startactivityforresult onactivityresult
harikrishnan Aug 03 '16 at 6:08 2016-08-03 06:08
source share