How to call a Java class from a Android Activity
<p>I have an Android activity called main.java and BPMClass.java class.  I need to call the BPMClass.java within the main.java class.  I wrote the code in the following way (does not show function name):</p>

<pre><code>import com.app.BPMClass;
... 
public class main extends Activity {
BPMClass bpmclass;
@Override
public void onCreate(Bundle savedInstanceState) 
  {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    bpmclass = new BPMClass("filename");
    bpmclass.    // does not show the function name of BPMClass.
  }
}

....
BPMClass{
   String fname;
   public BPMClass(String filename){
    fname=filename
   }
  public int fun1(fname){
   int val=0;
    .......
  return val; 
 }
}
</code></pre>
