Using integer from one class in another Android
<p>I need some help with using integer from one activity to another.</p>

<p>I am making some basic math program(game). It gets two random numbers, random operator, and 30 secs to solve math problems as much as you can. </p>

<p>If you solve problem u get 1 point.</p>

<p>Anyway right now, I want to get number of points that user have made and use it in another activity called <code>*RankActivity*.</code></p>

<p>Main activity is called <code>*BrzoRacunanjeActivity*</code> and it contains button and one <code>*int*</code> called <code>*poenibrojanje*</code> which get number of points that user have made, and when I click on button, it opens new Activity with this line:</p>

<pre><code>startActivity(new Intent(this, RankActivity.class));
</code></pre>

<p>As you can see another Activity is called RankActivity, and there  I wrote :</p>

<pre><code>*BrzoRacunanjeActivity a1 = new BrzoRacunanjeActivity();*

*System.out.println("Number of points:" + a1.poenibrojanje);;*
</code></pre>

<p>and I get all time this <code>reuslt: 09-22 09:09:14.940: INFO/System.out(289):</code> Number of points:0</p>
