摘要:
/***把字节数组保存为一个文件*@EditTime2007-8-13上午11:45:56*/publicstaticFilegetFileFromBytes(byte[]b,StringoutputFile){BufferedOutputStreamstream=null;Filefile=null;try{file=newFile(outputFile);FileOutputStreamfstream=newFileOutputStream(file);stream=newBufferedOutputStream(fstream);stream.write(b);}catch(Except 阅读全文
posted @ 2011-11-24 17:38
郑文亮
阅读(4540)
评论(0)
推荐(0)
摘要:
String path = "/mnt/sdcard/aaa.jpg"; File a = new File(path); // getHttpBitmap("http://192.168.200.44/a/1.jpg"); // Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(a), "image/*"); startActivity(inten 阅读全文
posted @ 2011-11-24 17:08
郑文亮
阅读(270)
评论(0)
推荐(0)
浙公网安备 33010602011771号