title: How to Run 2 threads simultaneously in android
body: <p>I am new to android programming.Sorry if this type of question have been asked before.
  I am getting trouble while creating threads.In my code, I have initialized <code>int i=500;</code> and in my first thread t1, i want to increment the value of t1 <code>if(i&lt;5000)</code> and also on my thread t2 want to check the condition where the value of t2 is decremented <code>if(i&gt;0)</code> 
  Please help...Thanks in advance</p>