Hi I know that we can use android api in unity but could someone tell me how to build a java plugin that contains the method that calls the android api and how to call it from unity.
And Thanks in advance.
Mark your project as library. In eclipse, it is in properties->android and tick is library.
Building the project will add a lib folder containing the jar file.
Create a plugin folder inside assets and an android folder inside of plugin. Drag the jar file in there.
That should be it.