title: Intent extras return null
body: <p>I call startActivityForResult event from girdview adapter class. Gridview adapter class was created by myFragment class.  intent extras always return null onActivityResult event.
  Where do you think the error? Thanks.</p>
  
  <p>My gridview adapter class;</p>
  
  <pre><code> public class MyAdapter extends ArrayAdapter&lt;MyInfo&gt; {
  
  @Override
  public View getView(int position, View convertView, ViewGroup parent) {
  
      View view = convertView;
  
      if (view == null) {
  
          LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          view = inflater.inflate(layoutResourceID, null);
  
      }
  
      ImageButton btnImage = (ImageButton) view.findViewById(R.id.btnImage);
  
          @Override
          public boolean onLongClick(View v) {
  
              Intent intentCamera = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
  
              intentCamera.putExtra("Asd", "Asd");
  
              MyFragment.startActivityForResult(intentCamera, 1);
  
              return true;
          }
      });
    }
  </code></pre>
  
  <p>MyFragment class for onActivityResult event</p>
  
  <pre><code>public class MyFragment extends Fragment {
  
      @Override
      public void onActivityResult(int requestCode, int resultCode, Intent data) {
  
      super.onActivityResult(requestCode, resultCode, data);
  
      ImageButton btn = (ImageButton) getActivity().findViewById(R.id.btnImage);
  
      switch (requestCode) {
      case 1:
  
          Bitmap photo = (Bitmap) data.getExtras().get("data");
  
           //photo is OK
  
          Bundle bundle = data.getExtras();
  
          if (bundle.getString("Asd") != null) {
  
              //bundle.getString("Asd")  NULL                         }
  
          if (data.hasExtra("Asd")) {
  
              //data.hasExtra("Asd") false
          }
  
  
          break;
  
      default:
          break;
      }
  
  }
  }
  </code></pre>