Android ActivityForResult between 3 activities -


I am ringing my head for hours in this matter. I have 3 activities, activity is an open b, and The activity must be passed to Data A. In Activity A, I run startActivityForResult:

  public static last int REQ_CODE_ACT3 = 2; @ Override Public Zero (see V) {intent = null; Intent = New Intention (Athis, Beaclas); StartActivityForResult (intent, REQ_CODE_ACT3); }  

Then B approaches the data in C.

  Intent singer = new intent (Beethis, Sequelas); Bundle extra = new bundle (); Singer Electro Extra ("CTO", D. CTO); Singer Electric extras ("color", de coror); Singer Power extras (extras); Initial activity (GNC); End();  

Finally, C should pass data A. But the data has not been passed

  lista.setOnItemClickListener (New OnItemClickListener () {@Override Public Zero OnItemClick (AdapterView  

  • In: startActivityforResult (B)

  • In B: startActivityForResult (C)

  • When the C result ends in the form of a call set and terminate the activity C
  • In overrideActivityResult B,

If you need some examples, you need to get a result from B override activity resuscitance on A + end activity B

  • C + What to do with setResult Code, or still have problems, please comment.


  • Comments

    Popular posts from this blog

    winforms - C# Form - Property Change -

    javascript - amcharts makechart not working -

    java - Algorithm negotiation fail SSH in Jenkins -