此文版权属于作者所有,任何人、媒体或者网站转载、借用都必须征得作者本人同意!
android.media.MediaMetadataRetriever mmr = new android.media.MediaMetadataRetriever();
try {
if (mUri != null) {
HashMap headers = mHeaders;
...
分类:
移动开发 时间:
2015-02-06 18:54:40
阅读次数:
911
修改CameraManager类中的openDriver(SurfaceHolder holder)方法:
public void openDriver(SurfaceHolder holder) throws IOException {
if (camera == null) {
System.out.println("wanggsx openDriver camera = nul...
分类:
移动开发 时间:
2015-02-06 16:53:58
阅读次数:
1103
bool? 什么意思 bool? isTrue;表示 bool isTrue = null ; 定义并给变量赋值为null;...
分类:
其他好文 时间:
2015-02-06 16:50:35
阅读次数:
435
private 构造函数一般用于Singleton模式,指的是整个应用只有本类的一个对象,一般这种类都有一个类似getInstance()的方法!下面是一个Singleton的例子:public class User { private static User user = null; ...
分类:
编程语言 时间:
2015-02-06 16:40:14
阅读次数:
149
crontab -l0 */1 * * * /usr/sbin/ntpdate time.tvmining.com && /sbin/hwclock -w >/dev/null 2>&1*/1 * * * * /opt/script/clear_file.sh 7 >/dev/null 2>&115...
分类:
其他好文 时间:
2015-02-06 16:32:51
阅读次数:
317
// proc/exec1.c 8-8
#include "apue.h"
#include const char* env_init[] = { "USER=unknown", "PATH=/home/sunyj/apue/proc/", NULL }; int main(void)
{ pid_...
分类:
其他好文 时间:
2015-02-06 16:30:55
阅读次数:
131
UndefinedNullBooleanNumberStringjavascript有5种简单数据类型(也称基本数据类型)Undefined、Null、Boolean、Number和String用typeof操作符可以检测给定变量的数据类型:var message="some thing";aler...
分类:
其他好文 时间:
2015-02-06 16:30:20
阅读次数:
211
List list = new ArrayList();Map map = null; while (rs.next()) { map = new HashMap(); map.put("fromIP", rs.get...
分类:
编程语言 时间:
2015-02-06 16:25:40
阅读次数:
151
kill-1:重新读取一次参数的配置文件 (类似 reload)这句话给我的感觉是把进程杀掉后重启进程,即 reload。而我查了下 man kill,-1 对应的 signal 是 SIGHUP,用个find / -perm +7000 > /dev/null 2>&1 &命令试验了下确实是杀进程...
分类:
系统相关 时间:
2015-02-06 14:33:22
阅读次数:
164
C string类c_str() 详解c_str() 返回以最后一个指向null结束。#include
using namespace std;
int main(int argc, char *argv[])
{
const char *ch;
string s = "abcdef";
ch = s.c_str();
cout<<ch...
分类:
其他好文 时间:
2015-02-06 13:17:21
阅读次数:
183