Copy ResolveInfo item from ArrayList a to ArrayList b?
<p>Aasically I'm trying to add an item from ArrayList a (allApps) to ArrayList b (myApps) but I'm getting an error. </p>

<p>This is what I'm trying:</p>

<pre><code>public ArrayList myApps = new ArrayList(); 

@Override
public void onCreate(Bundle savedInstanceState) {
   ...
   for(final ResolveInfo app : allApps) {
        addApp(app);
    }
}

public void addApp(ResolveInfo app) {
    ArrayList.add(app); // ERROR: Cannot make a static reference to the non-static method add(Object) from the type ArrayList
}
</code></pre>

<p>What does this error mean and how can I get I copy an item from one array to the other?</p>
