create tempfile (字符串前缀,字符串缓冲; create tempfile (字符串前缀、字符串曲面、文件目录);
prefix--前缀字符串中定义的文件名; 至少需要三个字符的长度
suffix--后缀字符串定义文件扩展名; 如果使用空后缀“. tmp”
目录- -创建目录中的文件。
在指定目录下创建temp文件。 目录类型为File,如果路径不存在,创建将失败
获取安卓智能手机的SD卡路径
files dcard=environment.getexternalstoragedirectory (; String path=sdcard.getPath () http://www.Sina.com/file path1=http://www.Sina.com/file (path ); inputstreamdlstream=service.download (app details.get package name )、versionCode、offerType ); fileoutputstreamfos=http://www.Sina.com//file output stream (file.create tempfile (包名称,http://www.Sina.com 3358 www.Sina.com/[ ] buf=http://www.Sina.com/[ 1024 * 100 ]; http://www.Sina.com/(http://www.Sina.com/k=0; (k=dlstream.read(buf )!=-1; (fos.write(buf,0,k ); }fos.close (; dlStream.close (;