Passing a method from another class
<p>I want to call a method from one class to another, don't know if that's possible without extends the class that contains the method. I've tried to import the package, that way I thought the method should be allow to use since it's a public method but that was not sucesfull..</p>

<p>tried to use this <a href="http://thedevelopersinfo.wordpress.com/2009/10/15/passing-data-between-activities-in-android/" rel="nofollow">link</a> as reference, but I didn't understand it (since is an app for android..)</p>

<p>A pseudo-code to exemplify</p>

<pre><code>class 1
class 2

class 2:

import package.class 1;


class 1.this.method();  -&gt; Error: No enclosing instance of the type class 1 in is acessible in scope
</code></pre>
