摘要: 1. Watchdog 简介 Android 为了保证系统的高可用性,设计了 Watchdog 用以监视系统的一些关键服务的运行状况,如果关键服务出现了死锁,将重启SystemServer;另外,接收系统内部reboot请求,重启系统。 总结一下: Watchdog 就如下两个主要功能: 1. 接收 阅读全文
posted @ 2016-12-01 17:37 Leslie Guan 阅读(2096) 评论(0) 推荐(0) 编辑
摘要: 从Acitivty的启动开始,我们就看到setContentView(见[从setContentView()谈起](http://www.cnblogs.com/GMCisMarkdownCraftsman/p/3754407.html))是如何创建和初始化的,但不清楚视图View如何添加到窗口以及... 阅读全文
posted @ 2014-08-29 15:53 Leslie Guan 阅读(1258) 评论(0) 推荐(1) 编辑
摘要: ## if (I am a Programmer || I have a strong sense of time) I use ag___##1. 安装命令行ag(代码中行首的“\\”是多余的)```bash\#!/usr/bin/env bash\#Author Leslie Guan\#ma... 阅读全文
posted @ 2014-06-18 20:43 Leslie Guan 阅读(11665) 评论(0) 推荐(0) 编辑
摘要: ##解决方案其实很简单,删除配置文件,让系统重新进行配置删除方法```bashcd ~rm -rf .cache/compizconfig-1/rm -rf .config/compiz-1/rm -rf .compiz```如果不行可以多删除一些东西:```bashcd ~rm -rf .cach... 阅读全文
posted @ 2014-06-11 22:14 Leslie Guan 阅读(1892) 评论(0) 推荐(0) 编辑
摘要: ##1. 下载ubuntu14.04iso镜像,可以到(ubuntu官网)[http://www.ubuntu.com/download]下载;比如我们下载的是ubuntu-14.04-server-amd64.iso##2. 配置启动项###2.1 下载[grub4dos](https://cod... 阅读全文
posted @ 2014-06-05 11:36 Leslie Guan 阅读(2559) 评论(0) 推荐(0) 编辑
摘要: ##1. 建立crontab的脚本```bash $ vi /etc/cron.daily/ntpupdatedaily``` 添加如下行:```bash #!/bin/bash ntpdate stdtime.gov.hk```##2. 添加到crontab任务```bas... 阅读全文
posted @ 2014-06-05 10:30 Leslie Guan 阅读(1044) 评论(0) 推荐(0) 编辑
摘要: ##1. 安装repo```bash $ mkdir ~/bin $ echo "export PATH=~/bin:\$PATH" >> ~/.bashrc $ source ~/.bashrc```获取repo并赋予可执行权限(或者参考[google官方网站](http://s... 阅读全文
posted @ 2014-06-05 09:55 Leslie Guan 阅读(1054) 评论(0) 推荐(1) 编辑
摘要: ##1. 查看android当前版本号在build/core/version_defaults.mk文件中查看PLATFORM_VERSION即可;```bash grep PLATFORM_VERSION build/core/version_defaults.mk```##2. 查看andr... 阅读全文
posted @ 2014-06-04 17:12 Leslie Guan 阅读(911) 评论(0) 推荐(0) 编辑
摘要: 本文主要讲解View或者ViewGroup是如何添加到应用程序的窗口中的。 阅读全文
posted @ 2014-05-27 09:34 Leslie Guan 阅读(1508) 评论(0) 推荐(0) 编辑
摘要: 执行的操作repo init -u git://192.168.1.183/android/platform/manifest.git -b android-4.2.1_r1.2或者repo init -b android-4.2.1_r1.2出现问题Traceback (most recent c... 阅读全文
posted @ 2013-05-21 22:04 Leslie Guan 阅读(4517) 评论(0) 推荐(0) 编辑