To Enable the Developer and Performance settings on CyanogenMod 10.1 In the Settings app, choose the About Phone (or About Tablet) option.Scroll down, and tap the Build number seven times. On the seventh tap, you will be notified that "You are now a…
在Android Froyo版本之前, 官方文档Performance Tips中有"Avoid Enums Where You Only Need Ints", 后来该部分被去掉, 详见 Performance Tips Android VM team的Elliott Hughes在StackOverFlow上澄清了该问题,详情 他指出”原先的文档已经根据虚拟机的实际评测(Benchmark)进行了更新, 只保留了有评测依据的结论, 随着Froyo版本虚拟机的更新, 该文档也更新了.…
1 前言 为了更深刻的理解Android图形系统抽象的概念和BufferQueue的工作机制,这篇文章我们将从Native Level入手,基于Android图形系统API写作一个简单的图形处理小程序.透过这个小程序我们将学习如何使用Native API创建Surface,如何请求图形缓冲区,如何向图形缓冲区中写入数据等知识.Talk is cheap, show me the code.让我们马上开始吧! 注:本系列文章的分析及代码均基于Android 12(S) Source Code,可参…
Algorithms: https://leetcode-cn.com/problems/single-number/submissions/ Review: “What Makes a Good Developer?” by Jonathan Bluks https://link.medium.com/O0CfiH0QfZ Tips: android handler. 主线程不做处理复杂的问题,创建hanlder发消息到主线程,主线程loop 从messagequeue取消息进行处理. Sha…
Algorithms: https://leetcode-cn.com/problems/longest-continuous-increasing-subsequence/ 最长连续子序列. Review: “Learn to code (or do anything): top down, bottom up and other approaches” by Austin Tindle https://link.medium.com/MVvduEYGSY Tips: android lo…
Algorithms: https://leetcode-cn.com/problems/next-greater-node-in-linked-list/ 链表中下一个更大的值,双层循环及优化,后面看可以栈处理,学习了 Review: “Can You Avoid Functional Programming as a Policy?” by Eric Elliott https://link.medium.com/oWci9jdLjY Tips: android : Andorid li…
Algorithms: https://leetcode-cn.com/problems/merge-two-sorted-lists/submissions/ 合并两个链表 Review: “Putting comments in code: the good, the bad, and the ugly.” by Bill Sourour https://link.medium.com/XB5EPBBa8X Tips: android : Andorid P 新增的registerAudi…
Algorithms: https://leetcode-cn.com/problems/repeated-substring-pattern/ 重复子字符串 Review: “I’m Leaving Google — and Here’s the Real Deal Behind Google Cloud” by Amir Hermelin https://link.medium.com/mPXXS8aBWX Tips: android : init.rc Android初始化语言包含了四…
文章地址 http://developer.android.com/training/articles/perf-jni.html JNI Tips JNI is the Java Native Interface. It defines a way for managed code (written in the Java programming language) to interact with native code (written in C/C++). It's vendor-ne…