/* * Copyright (C) 2010-2013 The **** 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. */ /** * ç±»çå¤§ä½æè¿°æ¾å¨è¿éã * * @author ä½è å * @since 2013-XX-XX */ @SuppressWarnings("unused") public class SampleCode { /** å ¬æç叏鿳¨é */ public static final String ACTION_MAIN = "android.intent.action.MAIN"; /** ç§æç叏鿳¨éï¼åç±»åç常éå¯ä»¥ååå¹¶ç´§åå®ä¹ï¼ */ private static final int MSG_AUTH_NONE = 0; private static final int MSG_AUTH_SUCCESS = 1; private static final int MSG_AUTH_FAILED = 2; /** ä¿æ¤çæååéæ³¨é */ protected Object mObject0; /** ç§æçæååé mObject1 注éï¼åç±»åçæååéå¯ä»¥ååå¹¶ç´§åå®ä¹ï¼ */ private Object mObject1; /** ç§æçæååé mObject2 注é */ private Object mObject2; /** ç§æçæååé mObject3 注é */ private Object mObject3; /** * å¯¹äºæ³¨éå¤äºä¸è¡çï¼éç¨è¿ç§æ¹å¼æ¥ * å®ä¹è¯¥åé */ private Object mObject4; /** * å ¬ææ¹æ³æè¿°... * * @param param1 åæ°1æè¿°... * @param param2 åæ°2æè¿°... * @param paramXX åæ°XXæè¿°... ï¼æ³¨æï¼è¯·å°åæ°ãæè¿°é½å¯¹é½ï¼ */ public void doSomething(int param1, float param2, String paramXX) { // ...implementation } /** * ä¿æ¤æ¹æ³æè¿°... */ protected void doSomething() { // ...implementation } /** * ç§ææ¹æ³æè¿°... * * @param param1 åæ°1æè¿°... * @param param2 åæ°2æè¿°... */ private void doSomethingInternal(int param1, float param2) { // ...implementation } }