passing variable data to non-activity classes
<p>What is the best way to pass variable data from an <code>Activty</code> to a <code>non-Activty</code> class? The data is created within the <code>onCreate</code> of the first <code>Acivity</code> I need to pass that data to the second class without the use of Intent. Any code samples would be appreciated.</p>

<p>Since I got it to work like I intended it to  post what I have. In my case I already had a <code>Constructor</code> that was an <code>ArrayList</code> and for what I was doing I needed another one of the same type. So here goes:</p>

<p>ClassActivity</p>

<pre><code>public class Polygon extends Overlay {
ArrayList&lt;GeoPoint&gt; geoPoints;

public Polygon(ArrayList&lt;GeoPoint&gt; points){
    geoPoints = points;
}

public class Hex{
    public Hex(ArrayList&lt;String&gt; str) {
        // TODO Auto-generated constructor stub
     Log.i("string",str.toString());
    }
  }
</code></pre>

<p>and My main Actvity has</p>

<pre><code> Polygon main = new Polygon(null);
 Polygon.Hex mMainClass = (main.new Hex(color));
</code></pre>

<p>Note that I had to create an instance of the main class before </p>

<pre><code>Polygon.Hex mMainClass = (main.new Hex(color));
</code></pre>
