title: Toggle activity
body: <p>Hy everybody,
  I'm trying to make an app and I need to create second activity.</p>
  
  <p>Now, I have:</p>
  
  <ol>
  <li><p><code>Activity1</code> with 3 <code>Button</code> with different ID. All button <code>onClick</code> switch <code>Activity1</code> to <code>Activity2</code>;</p></li>
  <li><p><code>Activity2</code> with <code>EditText</code> and <code>Spinner</code> and another <code>Button</code> (named <code>Button4</code>). <code>Spinner</code> to choose <code>Button1</code>, <code>Button2</code> or <code>Button3</code>. <code>EditText</code> for type number. <code>Button4</code> for back to <code>Activity1</code>;</p></li>
  <li><p>I need that when I press <code>Button4</code> the app switches back to <code>Activity1</code> and set <code>height</code> of choose selected button (in <code>Spinner</code>) to number from <code>EditText</code>.</p></li>
  </ol>
  
  <p>I know about <code>putExtra()</code>, <code>getIntent().GetExtras()</code>, etc.</p>
  
  <p>Trouble is in setting height when I go back to <code>Activity1</code> from <code>Activity2</code>.</p>
  
  <p>Simply say - I don't understand, what (of <code>onCreate()</code>, 
  <code>onStart()</code>, <code>onResume()</code>, <code>onPause()</code>, <code>onStop()</code>, <code>onDestroy()</code>) i need to use :(</p>
  
  <p>Help, please..</p>