I created my own jar file using eclipse. Now i am trying to make an android JAR file and then will use the same JAR file in others android apps.
Now though, my application is complete and make a jar file, but how i will use it for other Android Apps?
You should be able to access any publicly exposed methods from your .jar by importing the .jar into your project, then adding
import myjar.myclass;
You can then reference any methods from the class you import.
Hope this helps!
Import classes like normal
import com.my.package.here.MyClass;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.