摘要: package com.example.camera;import java.io.File;import android.net.Uri;import android.os.Bundle;import android.os.Environment;import android.text.format.Time;import android.util.Log;import android.view.Display;import android.widget.ImageView;import android.app.Activity;import android.content.Intent;i 阅读全文
posted @ 2012-10-05 14:02 春天的故事 阅读(5340) 评论(0) 推荐(0) 编辑
摘要: 当我们拍照时一般都由Android自动设置文件名,而已我们一般都是用时间来命名文件,以防止出现一样的文件名而覆盖了原来的文件。所以有核心代码为://得到当前系统时间 Time t=new Time(); t.setToNow(); int year=t.year; int month=t.month; int day=t.monthDay; int hour=t.hour; int minute=t.minute; int second=t.second; Log.i(... 阅读全文
posted @ 2012-10-05 13:12 春天的故事 阅读(3098) 评论(0) 推荐(0) 编辑