MAIN ACTIVITY
public class MyActivity() extends Activity { onCreate() { MyClass myobj=new MyClass(); }
Make that method as static so you can call without creating the class object
public static void Mymethod() {}
and call like this way
MainActivity.Mymethod();