如何使用您自己创建的jar文件在其他Android应用程序 [英] How to use your own created jar file in another android application

查看:78
本文介绍了如何使用您自己创建的jar文件在其他Android应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用eclipse创建了自己的jar文件。现在我试图让一个机器人JAR文件,然后将使用相同​​的JAR文件在其他Android应用程序。

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.

现在虽然,我的应用程序是完整的,做一个jar文件,但如何我将用于其他Android应用?

Now though, my application is complete and make a jar file, but how i will use it for other Android Apps?

推荐答案

您应该能够通过导入的.jar到您的项目,然后添加访问您的.jar任何公开展示的方法

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.

希望这有助于!

这篇关于如何使用您自己创建的jar文件在其他Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆