alexjie

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年2月13日

摘要: Agenda:首先做一个简单的概述:Android 为什么要有HAL层?为什么不能将这层接口写在内核空间中?我们知道,Linux内核源代码版权遵循GNU License,而Android源代码版权遵循Apache License,前者在发布产品时,必须公布源代码,而后者无须发布源代码。那么假如把HAL层和内核层整合在一起,就必须公开,这样就会损害厂家的利益,因为功能上的逻辑可是代表着这个公司的核心技术。所以就有了HAL层,这一层主要是功能上的逻辑实现,运行在用户空间。下面是与硬件抽象层相关的各个层的关系:首先在驱动上对硬件直接进行操作,但是这些操作都是最基本的,例如读写寄存器等等。而在HAL层 阅读全文
posted @ 2014-02-13 14:24 alexjie 阅读(781) 评论(0) 推荐(0) 编辑

2013年7月8日

摘要: 转载:http://android.tgbus.com/Android/tutorial/201103/346236.shtml And http://blog.csdn.net/sunshine0592/article/details/7010778 Can answer your question. 阅读全文
posted @ 2013-07-08 22:17 alexjie 阅读(179) 评论(0) 推荐(0) 编辑

2013年4月10日

摘要: Overview:Fragment is one container that can be padding by the actual widgets in activity. It is a small activity, which has lifecycle mixed with the activity it is in.场景演示 : 切换到该Fragment11-29 14:26:35.095: D/AppListFragment(7649): onAttach11-29 14:26:35.095: D/AppListFragment(7649): onCreate11-29 14 阅读全文
posted @ 2013-04-10 16:12 alexjie 阅读(127) 评论(0) 推荐(0) 编辑

2013年4月1日

摘要: Android commands: "adb shell procrank " to check the memory used info of all processes. "adb shell dumpsys meminfo pid(process id)" to check the memory used info of some one process. 阅读全文
posted @ 2013-04-01 17:09 alexjie 阅读(164) 评论(0) 推荐(0) 编辑

2013年3月23日

摘要: self-defined AppWidget:If you need define your own appwidget, you need two steps:first: define your layout. In the res/layout folder define a .xml, in the xml file, describe the widget's face.second: define your widget code. Because others use your widget from a class. So you must define a .java 阅读全文
posted @ 2013-03-23 10:55 alexjie 阅读(285) 评论(0) 推荐(0) 编辑

2013年3月22日

摘要: see the Linke:http://www.cnblogs.com/alexjie/admin/Files.aspx Folder:UIrecordAndReplay.zip 阅读全文
posted @ 2013-03-22 10:14 alexjie 阅读(134) 评论(0) 推荐(0) 编辑

摘要: BackGroundWhen I learned how to invoke one object's callback function, I found that the callback has three category:First: in the local, who define one function in file, then give it to you, you get it and use it.Second: You can use the intent to past one object to the others, then the others ge 阅读全文
posted @ 2013-03-22 10:06 alexjie 阅读(133) 评论(0) 推荐(0) 编辑

2013年3月21日

摘要: aidl--android interface define language.First use aidl define a file named .aidl in the class folder. In the aidl file, you should define your interface class which includes abstract methods. Then in your gen folder, there will automatically generate a .java file which has the same name with .aidl f 阅读全文
posted @ 2013-03-21 19:15 alexjie 阅读(137) 评论(0) 推荐(0) 编辑