android调用camera时,可以自己写一个activity,赋上相关参数,打开前camera就可以了;
需要申请的permission,在AndroidManifest.xml中添加:
主要功能,打开前camera
private Camera openFrontFacingCameraGingerbread() {
int ca...
分类:
移动开发 时间:
2014-06-20 12:58:38
阅读次数:
215
SSL in Neutron LBaaS haproxy driver 的简单实现。...
分类:
其他好文 时间:
2014-06-20 11:40:53
阅读次数:
349
1.
首先下载官方GO語言安装包:https://code.google.com/p/go/wiki/Downloads?tm=22. 设置
GOPATH在任意磁盘根目录新建一个文件夹,名字随意,这个将会是我们的工作目录,像我把它命名为 @Go@Go
目录下新建三个目录:binpkgsrc之后在“计...
(1)在windows下开启curl扩展,php.ini中
extension_dir路径是对的,extension=php_curl.dll前面的分号也去掉了,php加载的php.ini也是对,但是就是没有效果,上网百度,解决了.需要将php目录中的libeay32.dll,
ssleay32.d...
分类:
数据库 时间:
2014-06-11 22:06:15
阅读次数:
675
原题地址:https://oj.leetcode.com/problems/merge-k-sorted-lists/题意:Mergeksorted
linked lists and return it as one sorted list. Analyze and describe its com...
分类:
编程语言 时间:
2014-06-11 21:57:07
阅读次数:
399
http://geeklu.com/2010/10/getting-started-with-npapi-plugin/2012-10-10
更新:https://code.google.com/p/chromium/issues/detail?id=139816Chrome22之后貌似完全放弃10...
代码清单:
<?php
/**
* 获取当前页面的完整 url
* @author ruxing.li
* @return string
*/
function getPageUrl(){
$url = (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443') ? 'https://' : 'http...
分类:
Web程序 时间:
2014-06-07 13:16:27
阅读次数:
250
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca...
分类:
其他好文 时间:
2014-06-07 12:21:30
阅读次数:
284
原题地址:https://oj.leetcode.com/problems/sudoku-solver/题意:Write
a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are
indicated b...
分类:
编程语言 时间:
2014-06-07 09:30:06
阅读次数:
342
网上看到的一个开源项目的loading效果,效果很赞,记录一下:
开源项目地址如下:https://github.com/RomainPiel/Titanic
分类:
移动开发 时间:
2014-06-07 06:14:47
阅读次数:
671