Android 每堂课最重要的版权信息

Android 每堂课最重要的版权信息,android,comments,Android,Comments,我在谷歌或安卓开发者网站上的某个地方读到,所有新代码都需要有以下内容: /* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain

我在谷歌或安卓开发者网站上的某个地方读到,所有新代码都需要有以下内容:

/*
 * Copyright (C) 2013 The Android Open Source Project 
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at 
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and 
 * limitations under the License.
 */
在项目中每个类的顶部,以及以下类型的注释:

/** 
 * Implements listeners and call backs so that the location of user can be sought 
 */
在代码中,以便于参考,但有人知道这是哪里,因为我忘了给页面添加书签,现在我在任何地方都找不到该信息,但我知道这不是我的梦想吗


谢谢

这里是你找到这句话的地方:


请注意,这仅适用于贡献Android源代码的情况。他们维护代码库,因此他们可以实施自己的风格指导方针。如果你只是在编写自己的应用程序,你可以使用任何你想要的风格。

你是说你的应用程序?@blackbelt-是的,这是一个页面,上面满是关于你需要在代码中添加什么类型的注释以及注释的方式和位置的信息,但当时很匆忙,只做了几次,忘了添加书签。还有Pankaj Kumar-不太确定如何处理我的应用程序的注释tbhYes您是否要分发您的代码?让它开源吗?不,但是现在我有了这个页面,这要感谢James Daily——我可以完全阅读它,谢谢你——所以这只是对Javadoc的贡献?而不是针对已创建的应用程序必须等待7分钟才能接受答案:/I我在答案中添加了一些上下文-是的,这只是为了对Android项目本身做出贡献,而不是为了你自己的应用。