title: Calling a java class from an activity class
body: <p>Hello everyone i have a question in android
  How do i call a method in a non activity class from an activity class?
  For eg:
  I have an activity class </p>
  
  <pre><code>public class1 extends Activity
  {
  public void onCreate()
  {
           class2.main(null);//this code does not work neither does creating an object 
  }
  
  }
  //class 2
  public class2 {
   public static void main()
   {//code
   }
    }
  </code></pre>