简体   繁体   English

创建自己的库Android Java

[英]Create own library Android Java

I wonder if it's possible I create my own library with my most frequently used methods ready to be called in my application. 我想知道是否有可能用我最常用的方法创建自己的库,以准备在应用程序中调用它。 Facilitating and speeding up my work. 促进并加快我的工作。

It is possible to do this? 有可能这样做吗? How do? 怎么办 Someone gives an explanation of how to create and import? 有人解释了如何创建和导入? thank you 谢谢

Yes it is possible. 对的,这是可能的。 You just have to right click your Android Project in Eclipse, select on the left Android, and then you will have to check the is Library checkbox. 您只需要右键单击Eclipse中的Android项目,在左侧的Android上选择,然后必须选中is Library复选框。 To add this library to another project, you will just have to click Add on the same window in Eclipse. 要将库添加到另一个项目,只需在Eclipse的同一窗口上单击“ Add ”。

You could also have a look at Managing Projects from Eclipse especially at "Setting up a Project" section. 您也可以查看Eclipse中的“ 管理项目”,特别是在“设置项目”部分。

Create a jar with all your frequently used files and move that jar to your project lib folder. 创建一个包含所有常用文件的jar,并将该jar移至项目lib文件夹。 It should work. 它应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM