title: Android programming passing values
body: <p>Sorry if we're doing anything wrong, we just started a crash course in android and we are trying to pass a value using the bundle but it does not show any error, it only crashes after the attempt. Here is the code block below.
  ps, pls feel free to edit the post if you see anything wrong with it.</p>
  
  <pre><code>    Bundle b = new Bundle(); //to pass values in meals.java
      b.putStringArray("breakfast1" , new String[]{breakfast1[0]});
      Intent gene = new Intent(Calories.this, Days.class);
      //to pass the activity in another activity
  
      gene.putExtras(gene);
      startActivity(gene);
  
  
      //second.java bundle receiving code block
      break1 = (TextView) findViewById(R.id.break1);
      Intent gene = getIntent();
      String[] break2 = gene.getStringArrayExtra("breakfast1");
  
      break1.setText(break2[0]);
  </code></pre>