title: Passed data to new Activity is null
body: <p>I have a problem with passing data to a new activity. The passed data is not <code>null</code> but it does not contain any data when .getExtras() is called from the new activity. When I debug, the data is null at the new activity. Here is my implementation-</p>
  
  <p>FirstActivity.java</p>
  
  <pre><code>Cursor cursor = databaseAccess.getData("SELECT * FROM TYPE");
      imageList.clear();
      while (cursor.moveToNext()) {
          String id = cursor.getString(0);
          String name = cursor.getString(1);
          byte[] image = cursor.getBlob(2);
  
          imageList.add(new Food(id, name, image));
      }
      adapter.notifyDataSetChanged();
  
      //button to click to next page
      gridView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; arg0, View view, int position, long id) {
              view.setSelected(true);
              Food labels = imageList.get(position);
              String no = labels.getId();
              Intent passIntent = new Intent(FirstActivity.this, SecondActivity.class);
              passIntent.putExtra("keyid", no);//pass id to next activity
              startActivity(passIntent);
  
          }
      });
  </code></pre>
  
  <p>SecondActivity.java</p>
  
  <pre><code>//declaration for gridview and implement adapter
      gridView = (GridView) findViewById(R.id.gridView2);
      imageList = new ArrayList&lt;&gt;();
      adapter = new CustomGridAdapter1(this, R.layout.second_list, imageList);
      gridView.setAdapter(adapter);
  
      Bundle data = getIntent().getExtras();
      rowId = data.getString("keyid");
      cursor = databaseAccess.getImage(rowId);
      while (cursor.moveToNext()) {
          String id = cursor.getString(0);
          String name = cursor.getString(1);
          byte[] image = cursor.getBlob(2);
  
          imageList.add(new Recipe(id, name, image));
      }
      adapter.notifyDataSetChanged();
  }
  </code></pre>
  
  <p>databaseAcces.java</p>
  
  <pre><code>//display name and image in gridview at General.this
  public Cursor getImage(String id) {
      Cursor cursor;
      String selectQuery = "SELECT RECIPE.id, RECIPE.name, RECIPE.image FROM RECIPE INNER JOIN TYPE WHERE RECIPE.type_id=TYPE.id AND RECIPE.type_id=\"" + id + "\" ";
      database = openHelper.getReadableDatabase();
      cursor = database.rawQuery(selectQuery, null);
      return cursor;
  }
  </code></pre>