android调用camera时,可以自己写一个activity,赋上相关参数,打开前camera就可以了;
需要申请的permission,在AndroidManifest.xml中添加:
主要功能,打开前camera
private Camera openFrontFacingCameraGingerbread() {
int ca...
分类:
移动开发 时间:
2014-06-20 12:58:38
阅读次数:
215
1.User Location 能做什么
获取用户位置
追踪用户的移动
2.User Location 的关键API
Location Manager:用于管理Android的用户定位服务;
Location Providers: 提供多种定位方式供开发者选择;
3.获取用户的当前位置
Gps定位:
声明权限:android.permission.ACCESS_FINE_L...
分类:
移动开发 时间:
2014-06-18 12:18:38
阅读次数:
231
android.permission.ACCESS_CHECKIN_PROPERTIES 允许读写访问"properties"表在checkin数据库中,改值可以修改上传( Allows read/write access to the "properties" table in the checkin database, to change values that get uploaded)
...
分类:
移动开发 时间:
2014-06-17 21:58:57
阅读次数:
437
报错信息:password authentication failed Permission denied, please try again1 开启ubuntu上的ssh功能先安装,安装后就自动开启了.sudo apt-get install openssh-server openssh-clie...
分类:
其他好文 时间:
2014-06-15 14:05:28
阅读次数:
277
In most cases you will need root permission to be able to capture packets on an interface. Using tcpdump (with root) to capture the packets and saving...
分类:
其他好文 时间:
2014-06-15 06:51:22
阅读次数:
178
“权限”是我们设计系统不可缺少的,关于“权限”的英语单词也非常多,该用哪个呢?我參照有关“权限”的英文软件,总结例如以下,不足之处,多多指正:Permission:权限,包含动作和客体,比方:加入?文档,“加入?”是动作,“文档”是客体。相近的也有:Access
Control。Privilege:...
分类:
其他好文 时间:
2014-06-12 09:38:36
阅读次数:
206
一扩展访问控制列表的配置1:创建ACLRouter(config)#access-listaccess-list-number{permit|deny}protocol{sourcesource-wildcarddestinationdestination-wildcard}[operatoroperan]命令参数详细说明:access-list-number:访问控制列表表号,对于扩展ACL来说,是100—199的一个..
分类:
其他好文 时间:
2014-06-10 22:22:39
阅读次数:
469
oracle用户使用df-h时报错
[oracle@cqltjcpt1~]$df-h
FilesystemSizeUsedAvailUse%Mountedon
/dev/mapper/VolGroup-LogVol02
47G4.8G40G11%/
tmpfs127G260K127G1%/dev/shm
/dev/sda198M46M48M50%/boot
/dev/mapper/VolGroup-LogVol00
1008M34M924M4%/tmp
/dev/mapper/VolGroup..
分类:
其他好文 时间:
2014-06-02 04:14:50
阅读次数:
288
如果你在你的模板文件夹中有很多PSD HTML模板,那么用接下来这个htaccess文件可以保护限制访问:
文件D:\WebSite\ZBPHP.COM\www\Tpl\.htaccess 全部源码如下:
Order Allow,Deny
Deny from all...
分类:
数据库 时间:
2014-06-01 17:55:22
阅读次数:
460