title: How to pass an int value from one activity to other
body: <p>can anyone help what is the problem in my code  </p>
  
  <p><strong>Activiy 1:</strong>  </p>
  
  <pre><code>int view=1;
  TabFunctionality.setFirstTabFunctionality(TabFunctionality.FIRST_TAB, 1);
  Intent intent = new Intent(AdultTeeth.this, MainScreen.class);
  Bundle b = new Bundle();
  b.putInt("TEXT", view);                 
  intent.putExtras(b);    
  startActivityForResult(intent, TEETH_VIEW);
  finish();
  </code></pre>
  
  <p><strong>Activity 2:</strong></p>
  
  <pre><code>Bundle b = this.getIntent().getExtras(); int view=b.getInt("TEXT");
  </code></pre>