摘要:
I tried to download android source code by following instructions in this article: Using Repo and Git. Because I'm working with cygwin on windows, the readline module isn't available. The repo... 阅读全文
2010年1月10日
2010年1月9日
摘要:
I need to change a visual stuio 2003 project's source control system from visual sourcesafe to subversion. In order to commit clean source files to svn, I first need to completely remove vss bindi... 阅读全文
2010年1月7日
摘要:
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 pai... 阅读全文
2010年1月4日
摘要:
android media framework is built on top of a set of media libraries, including OpenCORE, vorbis and sonivox. So one of goal of android media framework is to provide a consistent interface for all serv... 阅读全文
2009年12月24日
摘要:
Question:Write an O(n)-time nonrecursive procedure that, given an n-node binary tree, prints out the key of each node in the tree. Use a stack as an auxiliary data structure. Answer:This isn't a d... 阅读全文
2009年12月17日
摘要:
Question:Let X[1 .. n] and Y [1 .. n] be two arrays, each containing n numbers already in sorted order. Give an O(lg n)-time algorithm to find the median of all 2n elements in arrays X and Y.Answer:Wi... 阅读全文
2009年12月11日
摘要:
I came across a question regarding c++, is it more efficient to use memcmp to determine equality of two objects of the same type.This is not a question regarding efficiency at all, it's about correctn... 阅读全文
2009年12月9日
摘要:
While doing android programming, it's a common sense to use Activity to interact with users and use Service to perform time consuming tasks (actually, such tasks are usually performed on a new thread ... 阅读全文
2009年12月7日
摘要:
There are times when I deployed an application on a box different from the developing box, the application failed to start with following message:"This application has failed to start because the appl... 阅读全文
2009年12月4日
摘要:
Question: Suppose that you want to output 0 with probability 1/2 and 1 with probability 1/2. At your disposal is a procedure BIASED-RANDOM, that outputs either 0 or 1. It outputs 1 with some probabili... 阅读全文