摘要: 拍照:photoAbsoluteFile = new File(createImagePath()); Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);// 调用系统自带照相机 Uri photoUri = Uri.fromFile(photoAbsoluteFile); intent.putExtra(MediaStore.EXTRA_OUTPUT, photoUri);// 设置图像... 阅读全文
posted @ 2013-07-03 19:30 云海天际 阅读(419) 评论(0) 推荐(0) 编辑
摘要: String.format 在是一个比较常用的一个方法,和C的printf方法 用法差不多下面摘一些例子看下:也可以用来格式化日期,下面是几个常用的格式:format("%1$tF", System.currentTimeMillis()) 2013-07-03format("%tF %<tR", System.currentTimeMillis()) 2013-07-03 14:22format("%tF %<tT", System.currentTimeMillis()) 2013-07-03 14:22:52form 阅读全文
posted @ 2013-07-03 14:28 云海天际 阅读(295) 评论(0) 推荐(0) 编辑