
Android
文章平均质量分 69
zhenyongyuan123
这个作者很懒,什么都没留下…
展开
-
分享经典书籍
算法导论(第二版)答案 http://download.csdn.net/source/2833669 算法导论(第二版)教师用书 http://download.csdn.net/source/2833637 笔试面试用书 Software Testing Interview Qu原创 2010-11-16 14:16:00 · 2030 阅读 · 0 评论 -
WebKit – WebKit For Android
如需转载,请注明出处! WebSite: http://www.jjos.org/ 作者: 姜江 linuxemacs@gmail.com QQ: 457283 这是一篇自己写于一年前的工作文档,分享出来。 一、WebKit简介 WebKit是一个开源的浏览器网页排版引擎,包含WebCore排版引擎和JSCore引擎。 WebCore和JSCore引擎来自于KDE项目的KHTML和KJS开源项目。Android平台的Web 引擎框架采用了WebKit项目中的WebCore和JSC原创 2010-12-09 16:27:00 · 2100 阅读 · 0 评论 -
Android Build System - how to add your product and board config *.mk[转]
1、Add board config 主要是定义和芯片相关的一些硬件配置 2、Product config主要配置一些产品提供的应用层功能原创 2010-12-09 12:17:00 · 1144 阅读 · 0 评论 -
Android的镜像文件(image)
1、ramdisk.img is a small partition image that is mounted read-only by the kernel at boot time. It only contains /init and a few config files. It is used to start init which will mount the rest of the system images properly and run the init proc原创 2010-12-09 12:47:00 · 1748 阅读 · 0 评论 -
Android 电源管理
Power Management IntroductionWake Locks Types of Wake Locks Exploring a Wake Lock ExamplePowerManager classRegistering Drivers with the PM DriverEarly Suspend Introduction Android supports its own Power Management (on top of the standard原创 2010-12-08 12:17:00 · 2358 阅读 · 0 评论 -
Android - under the hood
I'm really interested in finding out what is happening underneath the sheets on the Android platform. The first step to this is getting access to the Android shell. There are two options here, you can either start the emulator with a console option: $ emul原创 2010-12-03 11:23:00 · 1661 阅读 · 0 评论 -
分析android动画模块之Tween动画(转)
Android 平台提供了两类动画,一类是 Tween 动画,即通过对场景里的对象不断做图像变换(平移、缩放、旋转)产生动画效果;第二类是 Frame 动画,即顺序播放事先做好的图像,跟电影类似。本文分析了 Tween 动画的实现原理。 主要思路 Tween 动画通过对 View 的内容完成一系列的图形变换 (包括平移、缩放、旋转、改变透明度)来实现动画效果。 具体来讲,预先定义一组指令,这些指令指定了图形变换的类型、触发时间、持续时间。这些指令可以是以 XML 文件方式定义,也可以是以源代码方式定原创 2010-12-03 11:11:00 · 1603 阅读 · 1 评论 -
Android-x86 - Porting Android to x86
Android-x86 - Porting Android to x86 <br />http://www.android-x86.org原创 2010-12-01 10:44:00 · 1370 阅读 · 0 评论 -
Android内存管理-SoftReference的使用
<br /> 很多时候我们需要考虑Android平台上的内存管理问题,Dalvik VM给每个进程都分配了一定量的可用堆内存,当我们处理一些耗费资源的操作时可能会产生OOM错误(OutOfMemoryError)这样的异常,Android123观察了下国内的类似Market客户端设计,基本上都没有采用很好的内存管理机制和缓存处理。<br /> 如果细心的网友可能发现Android Market客户端载入时,每个列表项的图标是异步刷新显示的,但当我们快速的往下滚动到一定数量比如转载 2010-09-28 20:25:00 · 916 阅读 · 0 评论 -
OPhone自定义UI控件的实现原理解析
<br />http://mobile.csdn.net/n/20100916/279555.html转载 2010-09-22 00:36:00 · 907 阅读 · 0 评论 -
经典Android代码仓库
<br />一个关于Gallery的一些修改。类似coverflow。<br />http://www.eoeandroid.com/forum-viewthread-tid-47414-fromuid-6523.html<br /><br /> <br />OpenGL 3D立方体多纹理贴图【附源码】<br />http://www.eoeandroid.com/forum-viewthread-tid-44154-fromuid-6523.html<br />http://www.eoeandroid.原创 2010-12-23 16:10:00 · 1663 阅读 · 0 评论 -
Android属性系统分析
android property system Property system is an important feature on android. It runs as a service and manages system configurations and status. All these configurations and status are properties. A property is a key/value pair, both of which are of string原创 2011-01-01 15:45:00 · 1135 阅读 · 0 评论 -
Android内核和驱动篇-Android内核介绍
<br />已经有一些的文章介绍Android内核了,本系列篇将从Linux内核的角度来分析Android的内核,希望给初学者提够有用的信息。本章将简单的介绍Android内核的全貌,起到一个抛砖引玉的作用。从下一篇开始将详细介绍每一个Android内核驱动程序及其作用。<br /> Android内核是基于Linux 2.6内核的(目前最新开发版本是2.6.31),它是一个增强内核版本,除了修改部分Bug外,它提供了用于支持Android平台的设备驱动,其核心驱动主要包括:<br /> Android转载 2011-01-08 01:00:00 · 1533 阅读 · 0 评论 -
Android系统手机几种运行模式分析
作为一款智能操作系统,Android和Windows Mobile以及Symbian系统一样具备多个系统模式,本文将详细讲解各种系统模式的功能和进入方法。Android系统中具备6个模式,分别为一般启动模式(normal mode)、安全模式(safe mode)、恢复模式(recovery mode)、引导模式(bootloader mode)、fastboot模式和诊断模式(diagnos转载 2012-02-21 15:57:06 · 2280 阅读 · 0 评论 -
最新Android ADT, SDK, SDK_tool等官方下载说明(及时更新)
1、Android SDK starter packageSDK starter packagehttp://dl.google.com/android/installer_r08-windows.exeandroid-sdk_r05-官方下载地址: (1)http://dl.google.com/android/android-sdk_r05-windows.zip (2)h原创 2010-12-07 16:02:00 · 234711 阅读 · 16 评论 -
Android Security
Android SecurityAndroidSecurity OverviewIntroductionAndroidis a modern mobile platform that was designed to be truly open. Androidapplications make use of advanced hardware and software, as well原创 2011-11-15 10:14:19 · 7120 阅读 · 0 评论 -
Android(1.5及以上版本) 开机图片/文字/动画分析[转载、修改部分内容]
http://blog.csdn.net/zhenyongyuan123/article/details/5587634Android 开机会出现3个画面: 1. Linux 系统启动,出现Linux小企鹅画面(reboot)(Android 1.5及以上版本已经取消加载图片); 2. Android平台启动初始化,出现"A N D R I O D"文字字样画面; 3. And原创 2010-05-13 16:43:00 · 6024 阅读 · 3 评论 -
Android中/system/build.prop文件解读
在/system下的build.prop文件里,我们常看见以下语句。ro.ril.hsdpa.category = 10ro.ril.hsupa.category = 6ro.ril.hsxpa = 2ro.ril.enable.amr.wideband=1w转载 2011-08-20 20:09:26 · 3768 阅读 · 0 评论 -
Android系统在超级终端下必会的命令大全(一)转
Android系统在超级终端下必会的命令大全(一)~(十一)<br />http://fonter.javaeye.com/blog/702718转载 2011-02-15 19:34:00 · 1113 阅读 · 0 评论 -
Android 安装、卸载APK过程底层分析
对于用户而主言,安装应用程序(APK文件)是从“用户点击apk文件”或“自动下载完成->自动安装”开始的;而卸载应用程序(APK文件)是从“主屏->菜单->设置->应用程序->选择某应用程序->卸载”开始的。当然,通过adb pm命令也可以完成安装、卸载应用程序。 底层实现过程是: PackageInstaller包(位于packages/apps/PackageInstaller/*) -> PackageManager类(实际上是调用PackageManagerServic原创 2010-11-26 16:58:00 · 3811 阅读 · 0 评论 -
Android vold浅析
The Android system uses vold as the mount daemon, which detects, mounts and monitors the status of sdcard. The mount daemon needs a configuration file to tell it what the sdcard device is. Before Android 2.1 (included), the file is /etc/vold.conf. Since An原创 2010-11-19 12:24:00 · 3669 阅读 · 1 评论 -
Android 之 -- DRM(转)
简而言之,DRM系统提供一套机制对用户使用手机上的媒体内容(如ringtong, mp3等)进行限制,如限制拷贝给第三方,限制使用次数或时限等,从而保护内容提供商的权利。建议读者可以阅读OMA DRM 的规范,以便更好的了解代码。 相关代码主要位于下列目录: frameworks/base/media/java/android/drm/mobile1 frameworks/base/media/libdrm/moblile1 frameworks/base/media/libdrm/m原创 2010-11-16 17:29:00 · 2222 阅读 · 0 评论 -
Android JNI(实现自己的JNI_OnLoad函数)
<br />实现JNI中本地函数注册可以两种方式: <br />(1)采用默认的本地函数注册流程。 <br />(2)自己重写JNI_OnLoad()函数。(本文介绍)(Android中采用这种) <br />Java端代码:package com.jni;public class JavaHello { public static native String hello(); static { // load library: libtest.so try { System原创 2010-09-03 18:25:00 · 55826 阅读 · 16 评论 -
Android System Bring Up
Android System Bring Up<br />Once your code is built and you have verified that all necessary directories exist, power on and test your device with basic bring up, as described below. Bring up tests are typically designed to stress certain aspects of you原创 2010-09-03 18:01:00 · 1625 阅读 · 0 评论 -
Android的PVPlayer介绍
1 Player的组成 OpenCore的Player的编译文件是pvplayer/Android.mk,将生成动态库文件 libopencoreplayer.so。这个库包含了两方面的内容:一方是Player的engine(引擎),一方面是为 Android构件的Player,这实际上是一个适配器(adapter)。engine的路径是engine/player;adapter的路径是 android。 2 Player Engine部分 OpenCore 的 Player E原创 2010-09-09 16:26:00 · 1597 阅读 · 0 评论 -
Android Handler理解
Handler的定义: 主要接受子线程发送的数据, 并用此数据配合主线程更新UI. 解释: 当应用程序启动时,Android首先会开启一个主线程 (也就是UI线程) , 主线程为管理界面中的UI控件,进行事件分发, 比如说, 你要是点击一个 Button ,Android会分发事件到Button上,来响应你的操作。 如果此时需要一个耗时的操作,例如: 联网读取数据, 或者读取本地较大的一个文件的时候,你不能把这原创 2010-08-30 17:51:00 · 2126 阅读 · 0 评论 -
Android AsyncTask理解
AsyncTask的特点是任务在主线程之外运行,而回调方法是在主线程中执行,这就有效地避免了使用Handler带来的麻烦。阅读AsyncTask的源码可知,AsyncTask是使用java.util.concurrent 框架来管理线程以及任务的执行的,concurrent框架是一个非常成熟,高效的框架,经过了严格的测试。这说明AsyncTask的设计很好的解决了匿名线程存在的问题。 AsyncTask是抽象类,其结构图如下图所示: AsyncTask定义了三种泛型类型 Params,Pr原创 2010-08-30 17:52:00 · 25072 阅读 · 10 评论 -
Android笔记--handler机制
<br />Android笔记--handler机制一、重要参考资料【参考资料】 目前来看,下面的几个网址中的内容质量比较不错,基本不需要再读别的网址了。1、android消息机制一 http://xtfncel.javaeye.com/blog/6635172、Android消息机制二 http://xtfncel.javaeye.com/blog/6635183、Android线程间通信的message机制 http://www.javafun.cn/viewthread.php?tid转载 2010-08-23 18:29:00 · 11353 阅读 · 1 评论 -
Android中Handler的使用方法——在子线程中更新界面
<br />本文主要介绍Android的Handler的使用方法。Handler可以发送Messsage和Runnable对象到与其相关联的线程的消息队列。每个Handler对象与创建它的线程相关联,并且每个Handler对象只能与一个线程相关联。<br /> Handler一般有两种用途:1)执行计划任务,你可以再预定的实现执行某些任务,可以模拟定时器。2)线程间通信。在Android的应用启动时,会创建一个主线程,主线程会创建一个消息队列来处理各种消息。当你创建子线程时,你可以再你的子线程中拿到父原创 2010-08-23 18:33:00 · 2965 阅读 · 2 评论 -
取得Android root权限(Magic Root Access)
Accessing Root from the Magic/Sapphire Terminal Emulator Now that you have followed Magic Rooting to root your HTC Magic/Sapphire, you will notice that it is not possible to gain a root from an application running on the phone. The only way to get root ac原创 2010-07-29 19:43:00 · 4316 阅读 · 1 评论 -
Android OpenSSL分析及实例
Android cupcake、donut使用OpenSSL版本为0.9.8h,代码所在目录: external/openssl Android cupcake、donut使用的密钥库类型为BKS,版本为bouncycastle 1.32,依赖Java5,即bcprov-1.5-132.jar。bouncycastle 1.35开始有Java6版本的(bcprov-1.6-1原创 2010-05-05 10:56:00 · 13685 阅读 · 6 评论 -
Hack Android SD Card support
Hack Android SD Card support[First written by Steve Guo, please keep the mark if forwarding.]As current music and media player only play files on /sdcard, if you dont have a real SD card, you can u转载 2010-03-14 14:11:00 · 1207 阅读 · 0 评论 -
OpenGL ES 基本知识
OpenGL ES 基本知识OpenGL ES(以后简写为 “GL”)仅关心如何在帧缓存(framebuffer)中渲染(渲染后的值将保存到帧缓存中)。它不支持其他的外围设备与图形硬件关联,例如鼠标和键盘。编程人员必须通过其他的途径获取用户操作,例如 Khronos Open KODE API。GL在一定数量的可选模式下绘制原始对象。每个原始对象可以是一个点,线段或者一个三角形。每种模式可转载 2009-09-24 09:42:00 · 719 阅读 · 0 评论 -
Android 根文件系统启动分析
init进程是Android启动后系统执行的第一个名称为init的可执行程序。这个程序以一个守护进程的方式运行,它提供了以下功能: 设备管理 解析启动脚本 执行启动脚本中的基本功能 执行启动脚本中的各种功能 1、init可执行程序 init可执行文件是系统运行的第一个用户空间程序,它以守护进程的方式运行。因此这个程序的init.c文件包含main函数的入口,基本分析如下: int main(int argc, char **argv){ (省略若干。。。) uma原创 2010-09-09 16:35:00 · 1022 阅读 · 0 评论 -
Android的MediaPlayer架构介绍(转)
本文主要介绍的是Android中很重要也最为复杂的媒体播放器(MediaPlayer)部分的架构。对于Android这样一个完整又相对复杂的系统,一个MediaPlayer功能的实现不在其具体的功能,而是具体功能如何适应Android系统Android MediaPlayer的主要具体实现在OpenCore的Player中,这部分不是本文的关注点。本文关注的是MediaPlayer系统的架构,其他的一些Android的应用程序也使用类似的架构。 对于开源事业在中国的发展,hanchao3c认为应该共享的原创 2010-09-09 16:40:00 · 1003 阅读 · 0 评论 -
理解Android中的Handler/Message
1.活用Android线程间通信的Message机制 1.1.Message 代码在frameworks/base/core/java/android/Os/Message.java中。 Message.obtain函数:有多个obtain函数,主要功能一样,只是参数不一样。作用是从Message Pool中取出一个Message,如果Message Pool中已经没有Message可取则新建一个Message返回,同时用对应的参数给得到的Message对象赋值。 Message Pool:大小原创 2010-08-30 17:45:00 · 2550 阅读 · 2 评论 -
Android系统原理与源码分析
Android系统原理与源码分析<br />本文着重讲述如何随心所欲地控制AlertDialog。<br /><br />现在我们来看看第一个需求:如果某个应用需要弹出一个对话框。当单击“确定“按钮时完成某些工作,如果这些工作失败,对话框不能关闭。而当成功完成工作后,则关闭对话框。当然,无论何程度情况,单击“取消”按钮都会关闭对话框。<br /><br />这个需求并不复杂,也并不过分(虽然我们可以自己弄个Activity来完成这个工作,也可在View上自己放按钮,但这显示有些大炮打蚊子了,如果对话框上只有转载 2010-09-17 22:32:00 · 1017 阅读 · 1 评论 -
Android Bluetooth Process Diagram
The diagram below offers a process-oriented architectural overview of Android's Bluetooth stack. Click Bluetooth to return to the Bluetooth overview page.原创 2010-09-04 21:16:00 · 1158 阅读 · 0 评论 -
Advanced Android: Getting Started with the NDK
<br />Advanced Android: Getting Started with the NDK<br /> <br />Learn how to install the Android NDK and begin using it. By the end of this tutorial, you will have created your own project that makes a simple call from Java code to native C code.<br /> Pr转载 2010-09-19 09:45:00 · 828 阅读 · 0 评论 -
Advanced Android: Getting Started with the NDK
<br />Advanced Android: Getting Started with the NDK<br /> <br />Learn how to install the Android NDK and begin using it. By the end of this tutorial, you will have created your own project that makes a simple call from Java code to native C code.<br /> Pr转载 2010-09-19 09:43:00 · 941 阅读 · 0 评论