第一步:
uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
/>
uses-permission
android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"
/>
第二步:
Intent intent =...
分类:
移动开发 时间:
2014-11-06 20:07:40
阅读次数:
162
1、在项目根目录下新建lib文件夹2、把dom4j文件拷贝到lib文件夹3、dom4j,右键BuildPath---->Add To Build Path这样就添加dom4j到项目成功/***1、获得解析流*2、xml文件的解析*3、获取根元素*4、获取所有元素,循环处理*/ 1 //获得解析流 2...
分类:
其他好文 时间:
2014-11-06 19:13:47
阅读次数:
199
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an...
分类:
其他好文 时间:
2014-11-06 19:07:13
阅读次数:
205
public int excuteTrac() {
????int temp = 0; // 批插入
????String sql1[] = new String[4];
????//向第一个表插入的语句
????sql1[0] = "insert into usermbo(USERNAME,age,PASSWORD) value...
分类:
数据库 时间:
2014-11-06 17:53:34
阅读次数:
183
//得到程序的路径(strTemp就是当前项目中.exe的所在目录)
CString sPath, strTemp;
GetModuleFileName(NULL,sPath.GetBufferSetLength(MAX_PATH+1),MAX_PATH);
sPath.ReleaseBuffer();
int nPos = sPath.ReverseFind('\\');
strTe...
分类:
编程语言 时间:
2014-11-06 17:45:26
阅读次数:
152
android-ndk-r7的使用和配置已经相当简单,不再需要Cygwin,不需要安装,只需要解压后注册环境变量即可。
注册环境变量:新建一个系统变量: NDK_HOME=D:\androidDesign\android-ndk-r7,修改PATH的值,在最后增加;%NDK_HOME%.
接下来就可以使用ndk了,当前前提是eclipse和sdk已经设置完毕,能正常使用,关于这两个的设置请参看...
分类:
移动开发 时间:
2014-11-06 17:35:06
阅读次数:
255
String mBigImage = URLEncoder.encode(mImageUrl.replace("*", ""), "UTF-8");
String mBigImagePath = LoveHealthConstant.FILE_PATH + "images/" + mBigImage;
File getImage = new File(mBigImagePath);
...
分类:
其他好文 时间:
2014-11-06 17:30:26
阅读次数:
212
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-11-06 17:19:34
阅读次数:
189
Package path:young@ds85:~/something/download=====================================================================1 安装环境代码:sudo apt-get install openssh...
分类:
其他好文 时间:
2014-11-06 17:08:15
阅读次数:
268
转:http://www.tuicool.com/articles/bqeeey首先看下下面代码, session1.php 文件"; return (true);}function close(){ echo __FUNCTION__,""; return (true);}fun...
分类:
Web程序 时间:
2014-11-06 16:26:07
阅读次数:
212