摘要: connectivity= ConnectivityService.getInstance(context); ServiceManager.addService(Context.CONNECTIVITY_SERVICE,connectivity); 其中ConnectivityService.ge 阅读全文
posted @ 2016-05-25 16:23 polo2013 阅读(294) 评论(0) 推荐(0) 编辑
摘要: Activity中有一个名称叫onCreate的方法。该方法是在Activity创建时被系统调用,是一个Activity生命周期的开始。 onCreate方法的参数savedInstanceState onCreate方法的完整定义如下: public void onCreate(Bundle sa 阅读全文
posted @ 2016-05-25 11:40 polo2013 阅读(562) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get install apache2 git-core gitwebsudo a2enmod rewrite #vi /etc/gitweb.conf $projectroot = "/home/git/work"; 我的git代码库project.git在/home/git/w 阅读全文
posted @ 2016-05-25 11:01 polo2013 阅读(6241) 评论(0) 推荐(0) 编辑
摘要: 使用git服务器的工程师都需要生成一个ssh的公钥 ~/.ssh$ ssh-keygen Generating public/private rsa key pair. …………………… …………………… 然后一律按回车,完成后会在home目录下的.ssh目录中生成两个文件id_rsa(私有密钥)和 阅读全文
posted @ 2016-05-25 09:58 polo2013 阅读(823) 评论(0) 推荐(0) 编辑