2012年7月5日

think in java 第5章 初始化

摘要: package think.in.exercise10;/** * @author Administrator * think in java 第5章 * * think in java 第5章 无限构建 * 下面两个成员 memberA,memberB,不用static修饰 * * Exception in thread "main" java.lang.StackOverflowError * at think.in.exercise10.UnableInit.<init>(UnableInit.java:10) * JA... 阅读全文

posted @ 2012-07-05 18:01 EarlyBird 阅读(177) 评论(0) 推荐(0) 编辑

think in java 第8章 多态 ------ 复盖私有方法的缺陷

摘要: package think.in.exercise10;/** * * @author Administrator * think in java 第8章 多态 * 复盖私有方法的缺陷 */public class PrivateOverride{ private void function() { System.out.println(" PrivateOverride.function()"); } public static void main(String[] args) { /** * 陷井: * 子类方法与超类方法签名相同,超类方法是private的... 阅读全文

posted @ 2012-07-05 17:26 EarlyBird 阅读(178) 评论(0) 推荐(0) 编辑

think in java 第8章 多态

摘要: package think.in.exercise10;/** * 第8章 多态 * @author Administrator * 输出结果表明 : * Sub的对象,发生向上转型后,调用fistMethod()时,调用的是基类的fistMethod()方法。因为 * Sub类没有这个方法.在基类中的fistMethod()方法中,调用secondMethod()方法时又调用了 * 子类Sub中的secondMethod()方法,而不是基类中的secondMethod()方法. * 结论: * 子类对象在发生向上转型后,该对象调用的方法,在子类中不存在,则调用基类的。 * ... 阅读全文

posted @ 2012-07-05 14:56 EarlyBird 阅读(303) 评论(0) 推荐(0) 编辑

2012年4月24日

User Interface用户界面

摘要: In an Android application, the user interface is built using View and ViewGroup objects. There are many types of views and view groups, each of which is a descendant of the View class.在Android应用中,用户界面是用 View和 ViewGroup对象构建的。有许多的views和view组类型,它们都是View类的后代。View objects are the basic units of user inte 阅读全文

posted @ 2012-04-24 19:46 EarlyBird 阅读(675) 评论(0) 推荐(0) 编辑

2012年4月21日

Processes and Threads 进程和线程

摘要: Processes and Threads 进程和线程When an application component starts and the application does not have any other components running, the Android system starts a new Linux process for the application with a single thread of execution. 当一个Android应用组件开启时,并且该应用没有任何其他组件在运行,Android系统为该应用开启一个新的进程,并带有一个执行的线程.By 阅读全文

posted @ 2012-04-21 10:44 EarlyBird 阅读(396) 评论(0) 推荐(0) 编辑

2012年4月3日

Content Providers内容提供者

摘要: Content Providers内容提供者In this document本文档1. Content provider basics 内容提供者基础2. Querying a content provider 查询内容提供者3. Modifying data in a provider 修改内容提供者数据4. Creating a content provider 创建内容提供者5. Content URI summary 内容URI总结Key classes关键类1. ContentProvider 内容提供者2. ContentResolver 内容解释者3. Cursor 指示器(指针 阅读全文

posted @ 2012-04-03 23:44 EarlyBird 阅读(2680) 评论(0) 推荐(0) 编辑

2012年4月2日

Bound Services邦定服务

摘要: Bound Services邦定服务A bound service is the server in a client-server interface. A bound service allows components (such as activities) to bind to the service, send requests, receive responses, and even perform interprocess communication (IPC). A bound service typically lives only while it serves anoth 阅读全文

posted @ 2012-04-02 17:31 EarlyBird 阅读(1104) 评论(0) 推荐(0) 编辑

2012年3月30日

Camera

摘要: The Android framework includes support for various cameras and camera features available on devices, allowing you to capture pictures and videos in your applications. This document discusses a quick, simple approach to image and video capture and outlines an advanced approach for creating custom cam 阅读全文

posted @ 2012-03-30 23:49 EarlyBird 阅读(1801) 评论(0) 推荐(1) 编辑

2012年3月29日

Service 服务

摘要: A Service is an application component that can perform long-running operations in the background and does not provide a user interface. Another application component can start a service and it will continue to run in the background even if the user switches to another application. Additionally, a co 阅读全文

posted @ 2012-03-29 18:42 EarlyBird 阅读(2185) 评论(0) 推荐(0) 编辑

2012年3月27日

用包名调用Android自带应用

摘要: 包名:DDMS开启后,infoIntent intent = new Intent (Intent.ACTION_MAIN);//只要桌面上能看到的都能调用intent.setPackage("com.android.deskclock");startActivity(intent); 阅读全文

posted @ 2012-03-27 20:53 EarlyBird 阅读(560) 评论(0) 推荐(0) 编辑

导航