zoukankan      html  css  js  c++  java
  • Android中调用照相机拍照

                      Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
                      String strPath = Environment.getExternalStorageDirectory() +File.separator;
                      File path = new File(strPath);
                      if(!path.exists())
                      path.mkdirs();
                      String strFileName = "test.jpg";
                      String strFilePath = strPath + "/" + strFileName;
     
                      File file = new File(strFilePath);
                      Uri uri = Uri.fromFile(file);
                      intent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
                      startActivityForResult(intent, 1);  
  • 相关阅读:
    数据校验
    Struts2中OGNL
    Struts2 入门(新手必看)
    transactionManager 以及datasource type解析
    MyBatis
    rails 布署
    ubuntu ssh
    ubutun 下配置php和postgresql
    MS SQL 数据库所在C盘变得很大解决办法
    将表里的数据批量生成INSERT语句的存储过程 增强版
  • 原文地址:https://www.cnblogs.com/yangzhenyu/p/2219399.html
Copyright © 2011-2022 走看看