title: Listening for onActivityResault in View.OnCLickListener
body: <p>So the problem is the following:</p>
  
  <p>I'm generating a <code>contentView</code> in code with multiple <code>for</code> and <code>foreach</code> loops and have all of the listeners for buttons generated dynamically. But if I want to make changes in some <code>TextView</code> or something, I start a new Activity, and I want to listen for on <code>onActivityResult</code> inside a listener.
  I'm wondering if that's even possible and I could really use some help.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>    Button goliButton = new Button(this);
          goliButton.setText("+");
          goliButton.setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  Intent i = new Intent(TekmaLive.this,DodajStrel.class);
                  i.putExtra("MINUTA", currTime /1000 + cetrtina * 15 * 60);
                  i.putExtra("TEKMA", tekmaId);
                  i.putExtra("IGRALKA", Integer.parseInt(igralka[0]));
                  i.putExtra("GOL", true);
                  TekmaLive.this.startActivity(i);
                  //Insted of startActivity I would use startActivityForResult...
              }
          });
  </code></pre>