Android / Java - How do I call upon a function in a separate *.java file?
<p>I do an import of the full package name / java file, and if I do a <code>&lt;classname&gt;.&lt;method&gt;</code>, SOMETIMES I can get it to access - other times I get a lot of <code>can't use a static in a non static</code> bunch of talk.</p>

<p>I'll admit I'm new to Java, so what do I need to do?  Call a class instance first, then call my methods?   I'm rather confused by this, as I want to put all of my 'functions' into a FunctionsList.java file, and all of my main Activity (UI) into a MyActivity.java file.</p>

<p>For example:</p>

<pre><code>&lt;MyActivity.java&gt;

import com.example.FunctionsList;

private class MyActivity extends Activity {
  FunctionsList.function();
}
</code></pre>

<p>9/10 times I get that static/non-static error.</p>

<p>If I put all of my functions into MyActivity.java, I have zero problems!   Anyone help me on what I presume is a basic Java newbie issue?</p>
