- 浏览: 1841355 次
- 性别:
- 来自: 深圳
文章分类
- 全部博客 (665)
- 闲话 (17)
- ruby (1)
- javascript (40)
- linux (7)
- android (22)
- 开发过程 (11)
- 哥也读读源代码 (13)
- JVM (1)
- ant (2)
- Hibernate (3)
- jboss (3)
- web service (17)
- https (4)
- java基础 (17)
- spring (7)
- servlet (3)
- 杂记 (39)
- struts2 (10)
- logback (4)
- 多线程 (2)
- 系统诊断 (9)
- UI (4)
- json (2)
- Java EE (7)
- eclipse相关 (4)
- JMS (1)
- maven (19)
- 版本管理 (7)
- sso (1)
- ci (1)
- 设计 (18)
- 戒烟 (4)
- http (9)
- 计划 (4)
- HTML5 (3)
- chrome extensions (5)
- tomcat源码阅读 (4)
- httpd (5)
- MongoDB (3)
- node (2)
最新评论
-
levin_china:
勾选了,还是找不到
用spring annotation声明的bean,当打包在jar中时,无法被扫描到 -
GGGGeek:
我用的maven-3.5.0,还没有遇到这种情况,使用jar ...
用spring annotation声明的bean,当打包在jar中时,无法被扫描到 -
GGGGeek:
受益匪浅,从组织项目结构,到技术细节,讲的很到位,只是博主不再 ...
一个多maven项目聚合的实例 -
Aaron-Joe-William:
<?xml version="1.0" ...
hibernate逆向工程 -
li272355201:
http://archive.apache.org/dist/ ...
tomcat源码阅读(一)——环境搭建
最近项目快要进入开发阶段了,杂七杂八的事情比较多,另外还要兼顾一下android的培训和struts2的源码,有点忙不过来了,要多努力才行
这2天在准备android的培训文档,其实就是把《Android in action》上的要点归纳一下,之前做技术预研的时候买了几本android相关的书,感觉这本最好,虽然配套的代码差一些,所以就打算主要用这本书做培训材料了
只是把书里的要点摘要出来,作为培训内容的提纲,所以就不往论坛上帖了,免得被人投了隐藏,大家太喜欢投隐藏了,哎
1、内置应用和开发的应用,没有区别
2、Linux Kernel --> Dalvik VM --> Applications
3、Kernel: 硬件抽象层,同时提供了进程、内存、文件系统管理等核心服务
Runtime: Dalvik VM,运行时环境
Code libraries: 浏览器、数据库、绘图、影音
Managers: Activities、Views、Telephony等管理器
Hardware --> Linux Kernel --> Runtime & Libraries --> Application Managers --> Applications
4、Android基于Linux Kernel,运行在Dalvik VM里
5、四种核心组件:Activity、Service、Provider、Receiver
6、A best practice is to launch Services on a periodic or as-needed basis, triggered by a system alarm, and then have the Service terminate when its task is complete
7、在manifest.xml文件里注册的Receiver组件,不需要应用启动,就可以被触发
8、每个Android Application跑在一个单独的进程里
9、在OS资源短缺的时候,Application所在的进程,有可能会被kill,不同状态的进程的优先级有区别
10、android应用不是跑在jvm里,而是跑在Dalvik VM里,所有java字节码要转换成.dex文件格式
11、strings这些资源也是被编译成binary
12、You can define layout and views directly in code or in a layout XML resource file
13、you don’t have to use an XML file at all; instead, you can define all your layout and View configuration directly in code, as Java objects. This technique is used in applications where a dynamic GUI is required. Generally speaking, it’s often easier (and better practice) to use an XML layout resource for each Activity. An XML layout file defines View objects, organized into a hierarchical tree structure. After they’re defined in relation to the parent layout,each view can then be inflated at runtime
14、Android employs a handy adapter concept used to link views that contain collections with an underlying data source
15、An Adapter is a collection handler that returns each item in the collection as a View
16、Every process running on the Android platform is placed on a stack. When you use an Activity in the foreground, the system process that hosts that Activity is placed at the top of the stack, and the previous process (the one hosting whatever Activity was previously in the foreground) is moved down one notch
17、It decides which ones to get rid of based on a simple set of priorities:
1 The process hosting the foreground Activity is the most important.
2 Any process hosting a visible but not foreground Activity is next in line.
3 Any process hosting a background Activity is next in line.
4 Any process not hosting any Activity (or Service or BroadcastReceiver) is known as an empty process and is last in line.
18、adb shell dumpsys activity
19、If the process your Activity is in falls out of the foreground, it’s eligible to be killed and it’s not up to you; it’s up to the platform’s algorithm, based on available resources and relative priorities
20、
1 onCreate()
Called when the Activity is created. Setup is done here. Also provided is access to any previously stored state in the form of a Bundle
2 onRestart()
Called if the Activity is being restarted, if it’s still in the stack, rather than starting new
3 onStart()
Called when the Activity is becoming visible on the screen to the user
4 onResume()
Called when the Activity starts interacting with the user (This method is always called, whether starting or restarting)
5 onPause()
Called when the Activity is pausing or reclaiming CPU and other resources. This method is where you should save state information so that when an Activity is restarted, it can start from the same state it was in when it quit
6 onStop()
Called to stop the Activity and transition it to a nonvisible phase and subsequent
lifecycle events
7 onDestroy()
Called when an Activity is being completely removed from system memory. This method is called either because onFinish() is directly invoked or the system decides to stop the Activity to free up resources
21、it’s important to know that onPause() is the last opportunity you have to clean up and save state information. The processes that host your Activity classes won’t be killed by the platform until after the onPause() method has completed, but they might be killed thereafter
22、The system will attempt to run through all of the lifecycle methods every time, but if resources are spiraling out of control, as determined by the platform, a fire alarm might be sounded and the processes that are hosting activities that are beyond the onPause() method might be killed at any point
23、In addition to persistent state, you should be familiar with one more scenario: instance state. Instance state refers to the state of the UI itself. The onSaveInstanceState()method is called when an Activity might be destroyed, so that at a future time the interface state can be restored
24、耗时比较多的工作,应该在UI Thread之外完成,实现的方法是使用Handler类
25、android支持自定义View组件
26、In Android, screen layout is defined in terms of ViewGroup and
LayoutParams objects. ViewGroup is a View that contains other views (has children) and also defines and provides access to the layout
这2天在准备android的培训文档,其实就是把《Android in action》上的要点归纳一下,之前做技术预研的时候买了几本android相关的书,感觉这本最好,虽然配套的代码差一些,所以就打算主要用这本书做培训材料了
只是把书里的要点摘要出来,作为培训内容的提纲,所以就不往论坛上帖了,免得被人投了隐藏,大家太喜欢投隐藏了,哎
1、内置应用和开发的应用,没有区别
2、Linux Kernel --> Dalvik VM --> Applications
3、Kernel: 硬件抽象层,同时提供了进程、内存、文件系统管理等核心服务
Runtime: Dalvik VM,运行时环境
Code libraries: 浏览器、数据库、绘图、影音
Managers: Activities、Views、Telephony等管理器
Hardware --> Linux Kernel --> Runtime & Libraries --> Application Managers --> Applications
4、Android基于Linux Kernel,运行在Dalvik VM里
5、四种核心组件:Activity、Service、Provider、Receiver
6、A best practice is to launch Services on a periodic or as-needed basis, triggered by a system alarm, and then have the Service terminate when its task is complete
7、在manifest.xml文件里注册的Receiver组件,不需要应用启动,就可以被触发
8、每个Android Application跑在一个单独的进程里
9、在OS资源短缺的时候,Application所在的进程,有可能会被kill,不同状态的进程的优先级有区别
10、android应用不是跑在jvm里,而是跑在Dalvik VM里,所有java字节码要转换成.dex文件格式
11、strings这些资源也是被编译成binary
12、You can define layout and views directly in code or in a layout XML resource file
13、you don’t have to use an XML file at all; instead, you can define all your layout and View configuration directly in code, as Java objects. This technique is used in applications where a dynamic GUI is required. Generally speaking, it’s often easier (and better practice) to use an XML layout resource for each Activity. An XML layout file defines View objects, organized into a hierarchical tree structure. After they’re defined in relation to the parent layout,each view can then be inflated at runtime
14、Android employs a handy adapter concept used to link views that contain collections with an underlying data source
15、An Adapter is a collection handler that returns each item in the collection as a View
16、Every process running on the Android platform is placed on a stack. When you use an Activity in the foreground, the system process that hosts that Activity is placed at the top of the stack, and the previous process (the one hosting whatever Activity was previously in the foreground) is moved down one notch
17、It decides which ones to get rid of based on a simple set of priorities:
1 The process hosting the foreground Activity is the most important.
2 Any process hosting a visible but not foreground Activity is next in line.
3 Any process hosting a background Activity is next in line.
4 Any process not hosting any Activity (or Service or BroadcastReceiver) is known as an empty process and is last in line.
18、adb shell dumpsys activity
19、If the process your Activity is in falls out of the foreground, it’s eligible to be killed and it’s not up to you; it’s up to the platform’s algorithm, based on available resources and relative priorities
20、
1 onCreate()
Called when the Activity is created. Setup is done here. Also provided is access to any previously stored state in the form of a Bundle
2 onRestart()
Called if the Activity is being restarted, if it’s still in the stack, rather than starting new
3 onStart()
Called when the Activity is becoming visible on the screen to the user
4 onResume()
Called when the Activity starts interacting with the user (This method is always called, whether starting or restarting)
5 onPause()
Called when the Activity is pausing or reclaiming CPU and other resources. This method is where you should save state information so that when an Activity is restarted, it can start from the same state it was in when it quit
6 onStop()
Called to stop the Activity and transition it to a nonvisible phase and subsequent
lifecycle events
7 onDestroy()
Called when an Activity is being completely removed from system memory. This method is called either because onFinish() is directly invoked or the system decides to stop the Activity to free up resources
21、it’s important to know that onPause() is the last opportunity you have to clean up and save state information. The processes that host your Activity classes won’t be killed by the platform until after the onPause() method has completed, but they might be killed thereafter
22、The system will attempt to run through all of the lifecycle methods every time, but if resources are spiraling out of control, as determined by the platform, a fire alarm might be sounded and the processes that are hosting activities that are beyond the onPause() method might be killed at any point
23、In addition to persistent state, you should be familiar with one more scenario: instance state. Instance state refers to the state of the UI itself. The onSaveInstanceState()method is called when an Activity might be destroyed, so that at a future time the interface state can be restored
24、耗时比较多的工作,应该在UI Thread之外完成,实现的方法是使用Handler类
25、android支持自定义View组件
26、In Android, screen layout is defined in terms of ViewGroup and
LayoutParams objects. ViewGroup is a View that contains other views (has children) and also defines and provides access to the layout
发表评论
-
最近半个月开发小结
2011-12-05 22:16 13091、有一个方法,有一段 ... -
android培训文档提纲(四)
2011-11-27 23:28 12461、生命周期方法onSaveInstanceState()是在 ... -
Tasks and Back Stack
2011-11-22 23:47 1180Even though the activities may ... -
上周开发过程中几个简单问题的总结
2011-11-21 13:18 1357上周开发中组员遇到几个问题,都不是大问题,但都耽搁了一些时间。 ... -
android培训文档提纲(三)
2011-11-12 23:47 17631、Activity和Service组件是Context的子类 ... -
android的Log组件和logcat命令
2011-11-12 23:03 6318项目进入开发阶段了, ... -
android培训文档提纲(二)
2011-11-07 21:10 1661一、Each Activity can make an ... -
顶部有一排按钮,最底下还有FooterView的ListView页面
2011-08-13 15:46 3298先上效果图: 下面详细说说这个页面是怎么做出来的: 1、 ... -
实现屏幕下方展示的TAB分页
2011-08-09 23:22 2174这篇博客是参考helloandroid兄的腾讯微博应用,我整理 ... -
PendingIntent
2011-08-08 16:02 1559在开发SMS等应用时,有时调用相关的API会要求提供一个类型为 ... -
android数据持久化总结
2011-08-06 12:23 19181、 通过Context.getSharedPreferenc ... -
intent and service
2011-08-04 00:07 1420明天才开始讨论包需求 ... -
最近两周android总结
2011-08-01 23:42 1611最近2周预研做得差不多 ... -
没有单元测试,怎能写代码
2011-07-25 17:56 1570项目前期的技术点预研完成了,最近开始做原型开发。 之前没有在 ... -
android process and thread
2011-07-18 16:31 1688前三周android预研中,把可能用到的技术点都识别了,并完成 ... -
android第三周小结
2011-07-18 10:16 13611. 系统自带的通讯录应用,联系人名单保存在data/data ... -
onPause()方法的特殊性
2011-07-15 17:11 2925onPause(), onStop(), onDestroy( ... -
activity存在的三种状态
2011-07-15 16:44 1773An activity can exist in essent ... -
android第二周小结
2011-07-14 10:50 11631. 做了短信侦听的Broadca ... -
android一周小结
2011-07-04 21:26 1228做了一周android预研,总结以下几条: 1. 用DDMS ...
相关推荐
"软件项目开发的全套文档提纲模板"旨在提供一个结构化的框架,帮助开发者和项目经理有效地组织和编写各种必要的文档。以下是对这个提纲模板中可能包含的主要知识点的详细解释: 1. **项目启动文档**: - 项目背景...
软件项目开发的全套文档提纲 软件项目开发的全套文档提纲\项目开发总结报告(GB8567——88).doc 软件项目开发的全套文档提纲\用户手册(GB8567——88).doc 软件项目开发的全套文档提纲\操作手册(GB8567——88)....
以下是对"软件项目开发的全套文档提纲"的详细解释: 1. **项目启动文档 (Project Initiation Document, PID)** - PID是项目的起点,它定义了项目的目标、范围、预期成果以及初步的时间线和预算。 2. **需求分析...
软件开发项目文档的应用是非常广泛的,例如,软件开发项目文档可以作为项目团队的参考文档,软件开发项目文档可以作为项目团队与客户之间的交流工具,软件开发项目文档可以作为项目团队的培训文档等。 软件开发项目...
Android是一个基于Linux内核的操作系统,它包含了多个层次,从低到高分别是:Linux内核、HAL(硬件抽象层)、系统库、应用程序框架和应用程序。这个提纲主要关注的是底层部分,特别是针对ARM平台的Android移植与驱动...
"项目开发的全套文档提纲doc"涵盖了项目从启动到结束各个阶段所需的主要文档,旨在为团队提供清晰的指导和结构化的工作流程。以下是这套文档提纲中所包含的知识点详解: 1. 可行性研究报告:这是项目启动阶段的第一...
清华大学培训班培训提纲清华大学培训班培训提纲清华大学培训班培训提纲清华大学培训班培训提纲
"软件项目开发全套文档提纲"涵盖了软件工程中的各个重要阶段,旨在提供一个清晰、系统化的指导框架,以帮助团队成员理解项目的整体结构和各个阶段的目标。以下是对这套文档模板各部分的详细解释: 1. **项目启动...
《高管财务知识培训》提纲主要涵盖了财务报表的...综上所述,这个培训提纲旨在为高管提供一个全面的财务知识框架,通过深入理解财务报表,掌握关键财务指标,以及有效识别和管理风险,提升企业的财务管理能力和绩效。
垃圾分类培训提纲.doc