zoukankan      html  css  js  c++  java
  • 关于华为x2中的外置SDCard的使用

    一、前要

    记录一下最近在开发生产过程中遇到的一个小问题。在使用x2的华为7寸平板时,由于需要大内存去录制视频,所以就使用X2自带的SDCard口,插入1个128G的SDCard卡。但是Android sdk中只要提供Environment.getExternalStorageDirectory().getPath()方法来获取外置SDCard的方法。查了一些blog,挑了一些,如下:

    //http://blog.csdn.net/xubright/article/details/9832607
    //https://my.oschina.net/liucundong/blog/288183
    //http://stackoverflow.com/questions/5694933/find-an-external-sd-card-location#
    //http://blog.csdn.net/erzhuben/article/details/50854491
    //http://www.cnblogs.com/wanqieddy/p/3555989.html
    //http://blog.csdn.net/kc58236582/article/details/50159279

    二、纠结与迷茫

    主要是思考,使用android api调用外置SDCard的读写功能,但是未能如愿。

    在此过程中,由于对android系统中存储这块的了解不足,百度、so、google都没有找到合适的解决方案。

    三、柳暗花明

    虽然在使用手机自带内存时,操作外置SDCard没有深入学过,所以短时间内似乎无法实现。最终是在设置中找到存储设置项,将存储改成SDCard就可以使用android api调用SDCard了。

  • 相关阅读:
    whereis which type find
    souce and bash 的区别
    systemctl daemon-reload
    linux /etc/profile bashrc bash_profile
    ulimt 和 sysctl
    MySQL 问题总结
    asyncio
    Linux 中 MySQL 操作
    总结一波 Redis 面试题
    os 模块 和 re 模块
  • 原文地址:https://www.cnblogs.com/royi123/p/5888142.html
Copyright © 2011-2022 走看看