1.通过jni实现函数
//LOG宏定义
#define LOG_INFO(tag, msg) __android_log_write(ANDROID_LOG_INFO, tag, msg)
#define LOG_DEBUG(tag, msg) __android_log_write(ANDROID_LOG_DEBUG, tag, msg)
#define LOG_WARN(tag, ms...
分类:
移动开发 时间:
2014-07-23 22:36:17
阅读次数:
311
public class ZipUtil {
public ZipUtil(){
}
/**
* DeCompress the ZIP to the path
* @param zipFileString name of ZIP
* @param outPathString path to be unZIP
* @throws ...
分类:
移动开发 时间:
2014-07-23 22:31:57
阅读次数:
388
也是自己之前学习的笔记。读文件file_obj2=open('hello.txt','w')conta='my name is Bb'file_obj2.write(conta)v=file_obj2.readlines()print v输出不唯一数1 (这是一个国外Python练习网站上的题...
分类:
编程语言 时间:
2014-07-23 22:21:17
阅读次数:
497
using System.IO;string path = @"D:\accountDaoRu"; if (Directory.Exists(path) == false) { Directory.CreateDirectory(path); }if (Directory.Exists(Server...
分类:
其他好文 时间:
2014-07-23 22:13:17
阅读次数:
250
1 void CWriteWnd::OpenFileDialog() 2 { 3 OPENFILENAME ofn; 4 TCHAR szOpenFileNames[80*MAX_PATH] = _T(""); 5 TCHAR szPath[MAX_PATH];...
分类:
其他好文 时间:
2014-07-23 20:47:25
阅读次数:
206
要使用Direct Texture,需要有一份android系统的源码部分C++代码如下:#include #include #include #include #include #include #include #include #include #include #include "rende...
分类:
移动开发 时间:
2014-07-23 20:46:55
阅读次数:
681
1 public class DemoActivity extends BaseActivity { 2 private CheckBox cb_gender; 3 private String temp; 4 private Button bt_changeor; 5 ...
分类:
其他好文 时间:
2014-07-23 18:01:38
阅读次数:
239
这里的分区只是为了操作的方便。假设有个分区 kernel,其地址区间为 0x20000~0x320000,其大小为 0x300000
在没有分区的情况下,对这块区间的操作如下:
nand erase 20000 300000 擦除操作
nand write 20000000 20000 300000 写操作
nand read 20000000 20000 300000...
分类:
其他好文 时间:
2014-07-23 17:15:41
阅读次数:
222
执行cd php-5.2.13安装时候
./configure --prefix=/usr/local/php/ --with-config-file-path=/usr/local/php/etc/ --with-mysql=/usr/local/mysql/ --with-libxml-dir=/usr/local/libxml2/ --with-jpeg-dir=/usr/local/...
hdu 4862 Jump (费用流)
建图:新建一个temp节点,源点像temp连一条流量为k,费用为0的边,表示最多有k条路径。将原图每个点拆为两个点(i,i')表示流入该点和流出该点。temp像每个i连边,容量为1,费用为0,表示每个点都可以作为起点。为了保证每个点都被走到,每个的i向i’建边,容量为1,费用为-INF,表示费用非常非常小,它对流非常具有吸引力。每个i‘向能去的j建边,容量...
分类:
其他好文 时间:
2014-07-23 17:05:00
阅读次数:
307