如何创建自己的库中的每一个程序编写使用Android开发? [英] How to create your own library for Android development to be used in every program you write?

查看:97
本文介绍了如何创建自己的库中的每一个程序编写使用Android开发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个Delphi程序员和采写,多年来,数百类和程序,我可以在每一个Delphi程序我写的使用。

I am a Delphi programmer and have written, over the years, hundreds of classes and routines which I can use in every Delphi program I write.

被称为dlib,可以是在每一个Delphi程序使用通过将这个文件夹在我的库路径和一个用途部分使用单位之一德尔福单位。

This library is called dlib and can be used in every Delphi program by putting this folder in my library path and using one of the units in the uses section of a Delphi unit.

作为全新的Java和Android的发展,我想知道如何做到这一点的类似的方式。

Being completely new to Java and Android development, I am wondering how to do this in similar way.

所以我的问题,我怎么能写自己的班,把他们在一些全球性的文件夹,并在每个Android程序我写使用这些类和例程

我知道这是一个基本的问题,我也许可以找到通过搜索谷歌和尝试它在Eclipse中,但如果有人可以把我在正确的轨道上,我知道我会节省很多时间。

I know this is a basic question, which I can probably find out by searching Google and trying it out in Eclipse, but if someone can put me on the right track, I know I will save much time.

感谢。

推荐答案

您必须创建的Andr​​oid库项目。 在Eclipse创建Android项目,进入项目属性 - > Android和检查isLibrary财产。现在,您可以将其添加到同一个属性页上列出这个库添加到你的Andr​​oid应用程序项目。

You have to create Android Library Project. Create android project in Eclipse, enter Project Properties -> Android and check isLibrary property. Now you can add this library to your Android Application project by adding it to list on the same property page.

这里与库项目部分工作更详细的说明

More detailed instructions here in Working with Library Projects section

这篇关于如何创建自己的库中的每一个程序编写使用Android开发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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