title: startActivityForResult from adapter to Activity not getting result back to fragment
body: <p>I am not getting the result back to fragment from activity</p>
  
  <p>this is my Sherlock fragment code</p>
  
  <pre><code>public class AlphabeticalListFragment extends SherlockFragment {
  .
  .
  .
  public void setAdapter(){
      adapter = new ListviewAlphabetAdapter(context, alphabet_data);
      lv_list.setAdapter(adapter);
      }
  .
  .
  @Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
              Toast.makeText(context, "RESULT : " + requestCode + "-" + resultCode,
                          Toast.LENGTH_SHORT).show();
              }
          }
  </code></pre>
  
  <p>And my adapter code is</p>
  
  <pre><code>public class ListviewAlphabetAdapter extends BaseAdapter{
  .
  .
  
      @Override
      public View getView(final int position, View convertView, ViewGroup parent) {
          convertView = mInflater.inflate(R.layout.template_list_letter_view,
                  null);
            holder.ll_store_data.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  Intent i_dialog = new Intent(context,
                          DialogStoreAllActivity.class);
                  i_dialog.putExtra("id", alphabet_data.get(position).getI());
                  ((Activity) context).startActivityForResult(i_dialog, 500);
              }
          });
          return convertView;
      }
  }
  </code></pre>
  
  <p>In the Activity</p>
  
  <pre><code>public class DialogStoreAllActivity extends Activity{
  .
  .
  // In onClick function of a button
  setResult(RESULT_OK, (i_groups).setAction("ok"));
  .
  }
  </code></pre>
  
  <p>I m not getting the result in the fragment</p>