It doesn't make any sense to do this, unless you actually have an
object of that class.  Unless the method should indeed be static.
(This seems like a basic Java question, not an Android specific
question.)

Kris

On Wed, Jan 11, 2012 at 8:51 PM, JamesColeman
<[email protected]> wrote:
> In my xml layout file I override surface view as follows
>
> my.xlm
> <com.MyApp.DrawingSurfaceView
>        android:id="@+id/DrawingSurfaceView"
>        android:layout_width="fill_parent"
>        android:layout_height="fill_parent"
>        android:layout_weight="1" />
>
> DrawingSurfaceView.java
> public class DrawingSurfaceView extends SurfaceView implements
> SurfaceHolder.Callback{
>
> public void myMethod(){
> }
> }
>
> How do I call MyMethod from another class?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to