Accessing a public variable from another class?
<p>The app I'm currently developing has more than one class created, with a corresponding
.xml file for each. My app requires progressing from one screen to the next
after a calculation has been completed.</p>

<p>In one class, I have declared a public double called V, which is the result
of a voltage calculation.</p>

<p>When the user presses "NEXT", a new class (ed: Activity?) is called, and the xml file will change the screen view to a new layout.</p>

<p>In this new class, I need to use the variable (double V) for a new calculation.</p>

<p>I thought that if a variable was public, it could be used anywhere in the package. Do I need to import this variable, or re-declare it somehow?</p>

<p>Any answers would be much appreciated. I've tried everything that I can think of, but
Eclipse just keeps saying V cannot be resolved.</p>
