- 博客(11)
- 资源 (4)
- 收藏
- 关注
转载 基础应用框架之Image Pool
本章介绍基础应用框架层的Image Pool模块。Image Pool模块提供了服务端图片下载的统一解决方案。通过控制图片内存使用量;减少图片重复下载;与Android View的无缝结合等,提供图片下载的最佳实践。 1.1 特性 Feature1.1.1 图片内存管理在And
2014-12-04 16:46:25 2373 1
转载 一些非常实用的 Android 开发资源 【转】
1. Android Annotations Android Annotations是一个能够加速Android开发的开源框架,它可以帮助开发者处理一些前后台任务、rest服务、应用类、代码片段等,让开发者专注于真正重要的东西。 2. ActionBarSherlok ActionBarSherlock是一个扩展的Android支持库,旨在允许开发者通过一个单一的A
2014-12-04 16:36:11 728
转载 SPDY协议的Android实现 OKHTTP代码分析
1 概况 Introduction在Android上我们用开源项目OkHttp作为客户端的SPDY协议栈链接支持SPDY的网站,如Taobao CDN等。本文主要分析OkHttp是如何在Android的通信层扩展SPDY。先简要介绍一下SPDY。SPDY的主要目标:单个tcp连接支持并发的Http请求。这主要是解决目前http协议的一个连接只能服务一次请求的问题。压缩请求/响应头。
2014-12-04 16:18:24 7329
转载 jvm开发笔记5 - 虚拟机内存管理
一、 前言 ajvm是笔者正在开发中的一个java虚拟机, 想通过编写这个jvm帮助程序员了解jvm的具体实现细节, 它是国内第一个开源的java虚拟机项目:https://github.com/cloudsec/ajvm, 同时笔者把它的开发笔记也分享到了ata上。 在前面4篇笔记中, 已经实现了class文件加载器, 反汇编器,jvm的crash信息处理, 同时它已经能
2014-12-04 16:07:27 805
转载 jvm开发笔记4---jvm crash信息处理
ajvm是一个笔者正在开发中的java虚拟机, 用c和少量汇编语言编写, 目的在于探究一个可运行的java虚拟机是如何实现的, 目前整个jvm的source code代码量在5000行左右, 预计控制在1w行以内,只要能运行简单的java代码即可。笔者希望ajvm能变成一个教学用的简单java虚拟机实现, 帮助java程序员在陷入庞大的hotspot vm源码之前, 能对jvm的结构有个清晰的认识
2014-12-04 16:05:22 879
转载 jvm开发笔记3---java虚拟机雏形
一、背景 笔者希望通过自己动手编写一个简单的jvm来了解java虚拟机内部的工作细节毕竟hotsopt以及android的dalvik都有几十万行的c代码级别。 在前面的2篇开发笔记中已经实现了一个class文件解析器和一个java反汇编器 在这基础上 java虚拟机的雏形也已经写好。还没有内存管理功能 没有线程支持。它能解释执行的指令取决于我的java语法范围 在这之前我对java
2014-12-04 16:03:29 794
转载 jvm开发笔记2---java反汇编器
这两天在class文件解析器的基础上, 加上了java反汇编的功能, 反汇编器是指令解释器的基础,通过编写反汇编器可以熟悉jvm的指令系统, 不过jvm的指令一共有201个,反汇编过程基本就是个体力活。在《java虚拟机规范》中对每一条指令都有了详细的描述,下面说说我是如何解析bytecode的:一个java文件经过javac编译后会生成class格式文件, 在class格式中method
2014-12-04 16:02:31 1081
转载 jvm开发笔记1---class文件解析器
笔者最近对java虚拟机产生了浓厚的兴趣, 想了解下最简单的jvm是如何写出来的,于是看起了《java虚拟机规范》,这个规范如同intel开发手册一样,是每个jvm开发人员必须掌握的。 要想翻译执行java byte code, 首先得从java class文件中把Code属性解析出来才行。 在笔者看来, java的class文件结构着实比elf文件结构复杂很多,不过在复杂的结构, 只要耐心对照着
2014-12-04 15:59:54 767
转载 理解堆栈及其利用方法
下午详细膜拜了一浪大牛的《无符号和栈破坏情况下coredump的分析方法》, 此刻惊魂未定,激动不已, 既然谈到了堆栈, 就跟大家分享下我认识和理解的堆栈, 希望对大家有所帮助。 更新: 1、对于堆栈的结构, 我是按x86架构画的, x86_64结构大致相同, 只是函数参数是通过rdi, rsi etc来传递,没有压入堆栈里。2、本文介绍了堆栈的结
2014-12-04 15:28:12 3335
转载 Android的线程和内存模型
Android的线程和内存模型Android操作系统在boot后,会启动一个Zygote(受精卵)进程,Zygote进程负责创建大部分应用程序进程。Zygote进程启动加载核心程序库和数据结构到内存后会创建一个Dalvik虚拟机(DVM)进程--SystemServer,此进程会包含大部分的系统服务(包括管理Activity的服务ActivityManagerService),System
2014-12-04 14:42:31 2507
转载 android程序自动化生成apk的过程
在编写android的时候,写好java代码后,eclipse直接帮我们生成了可安装的apk,但有时需要自动化的去生成个性化apk的时候,我们就需要编写脚本或代码来自动生成一个apk,在生成apk之前必须了解下android编译apk的过程; 现在很多人想对Android工程的编译和打包进行自动化,比如建立每日构建系统、自动生成发布文件等等。这些都需要我们对
2014-12-03 17:15:19 837
Schema的Xpath教程
2011-06-06
java反编译工具FrontEnd和jad
2011-06-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人