Android 安卓应用的源代码?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3067343/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 08:33:13  来源:igfitidea点击:

Source code for android apps?

android

提问by Sameer

I have just started learning to write apps for android using Eclipse. Where can I find free source code that I can use during my learning experience?

我刚刚开始学习使用 Eclipse 为 android 编写应用程序。在哪里可以找到可以在学习过程中使用的免费源代码?

采纳答案by digitarald

The official sample code and tutorials can be found here: http://developer.android.com/resources/index.html

官方示例代码和教程可以在这里找到:http: //developer.android.com/resources/index.html

For reading code I can recommend these repositories:

对于阅读代码,我可以推荐这些存储库:

More sample applications for the Android platform: http://code.google.com/p/apps-for-android/

更多适用于 Android 平台的示例应用程序:http: //code.google.com/p/apps-for-android/

Open Source examples from the books http://commonsware.com/AndTutorials/and http://commonsware.com/AdvAndroid/are available at http://github.com/commonsguy/cw-andtutorialsand http://github.com/commonsguy/cw-advandroid/. They helped me a lot by simply reading the code and searching for classes I needed.

http://commonsware.com/AndTutorials/http://commonsware.com/AdvAndroid/书中的开源示例可在http://github.com/commonsguy/cw-andtutorialshttp://github 上获得。 com/commonsguy/cw-advandroid/。他们通过简单地阅读代码和搜索我需要的类来帮助我。

回答by Buzzy

You can take a look at the source code of the common Android applications like Contacts, Email, Calendar, etc.

您可以查看常用 Android 应用程序的源代码,例如联系人、电子邮件、日历等。

Look at projects under platform/packages/appshere:
https://android.googlesource.com/platform/packages/apps/

在此处查看platform/packages/apps下的项目:https:
//android.googlesource.com/platform/packages/apps/

回答by mtmurdock

Go to the android developers site, they have lots of code demos and tutorials to get you started. Check em out here.

转到 android 开发人员站点,他们有很多代码演示和教程可以帮助您入门。检查时间了这里

A lot of their examples are included in the sdk. you can find them in android-sdk-windows\samples

他们的很多例子都包含在 sdk 中。您可以在 android-sdk-windows\samples 中找到它们

回答by Joubarc

You can also reach the code samples directly in Eclipse: create a new Android Project, then select "Create from an existing sample" in the "New Android Project" dialog.

您还可以直接在 Eclipse 中访问代码示例:创建一个新的 Android 项目,然后在“新建 Android 项目”对话框中选择“从现有示例创建”。

回答by hram908

回答by Justinas Ruika

Answers are quite old, here is new link to andtheitroadd's APS samples http://developer.android.com/tools/samples/index.html

答案已经很旧了,这里是 andtheitroadd 的 APS 示例的新链接http://developer.android.com/tools/samples/index.html