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
Source code for android apps?
提问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-andtutorials和http://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
Links where you can spend lots of time learning and checking out Open Source code for eclipse using SVN.
您可以花大量时间学习和检查使用 SVN 的 Eclipse 开源代码的链接。
http://code.google.com/hosting/search?q=label:Android
http://code.google.com/hosting/search?q=label:Android
https://github.com/search?q=android&ref=commandbar
https://github.com/search?q=android&ref=commandbar
回答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