摘要: 1、android文件的操作数据存放在“data/data/org.jgw.hello/files/”下如下图2、读写文件的代码如下3、将文件保存在sdcard3.1、权限配置在mainfest中3.2、用绝对路径和函数取的sdcard路径写数据,用函数取路径可以兼容各个版本android系统3.3、判断sdcard状态 阅读全文
posted @ 2012-07-25 21:57 kuailewangzi1212 阅读(200) 评论(0) 推荐(0) 编辑
摘要: <?xmlversion="1.0"encoding="utf-8"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"package="org.jgw.hello"android:versionCode="1"android:versionName="1.0"><uses-sdkandroid:minSdkVersion="8"/>& 阅读全文
posted @ 2012-07-25 20:47 kuailewangzi1212 阅读(184) 评论(0) 推荐(0) 编辑
摘要: <html><head><scripttype="text/javascript">functionsleep(n){varstart=newDate().getTime();while(true)if(newDate().getTime()-start>n)break;}functionhandleClick(abc){vardiv;div=document.createElement("span");div.innerHTML=abc+"";document.body.appendChil 阅读全文
posted @ 2012-07-25 15:59 kuailewangzi1212 阅读(364) 评论(0) 推荐(0) 编辑
摘要: <html><head><scripttype="text/javascript">functionhandleClick(abc){vardiv=document.createElement("div");div.innerHTML=abc;document.body.appendChild(div);}functionprocessArray(items,process,callback){vartodo=items.concat();//克隆数组setTimeout(function(){varitem=todo 阅读全文
posted @ 2012-07-25 15:26 kuailewangzi1212 阅读(157) 评论(0) 推荐(0) 编辑
摘要: <?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="fill_parent"android:orientation="vertical"><TextViewandroid:l 阅读全文
posted @ 2012-07-25 00:03 kuailewangzi1212 阅读(193) 评论(0) 推荐(0) 编辑