Hi I have an android library project A. Its Main Activity contains method abc(String).When I am trying to call this method from other project after integrating project A,It force closed. I used the code
MainActivity a=new MainActivity();
a.abc("");
Am I do the right way to call a method from library project activity from other project?? please help me I am new to android,thanks in advance.