zoukankan      html  css  js  c++  java
  • android 获取系统默认路径

    Environment.getDataDirectory().getPath() : /data
    Environment.getDownloadCacheDirectory().getPath()  : /cache
    Environment.getExternalStorageDirectory().getPath(): /mnt/sdcard
    Environment.getRootDirectory().getPath()           : /system
    Context.getCacheDir().getPath()                    : /data/data/com.zhd/cache
    Context.getExternalCacheDir().getPath()            : /mnt/sdcard/Android/data/com.zhd/cache
    Context.getFilesDir().getPath()                    : /data/data/com.zhd/files
    Context.getObbDir().getPath()                      : /mnt/sdcard/Android/obb/com.zhd
    Context.getPackageName()                           : com.zhd
    Context.getPackageCodePath()                       : /data/app/com.zhd-1.apk
    Context.getPackageResourcePath()                   : /data/app/com.zhd-1.apk

  • 相关阅读:
    Go:获取命令行参数
    Go:文件操作
    Go:类型断言
    GO:interface
    Go:面向"对象"
    Go:工厂模式
    layui中流加载layui.flow
    js显示当前时间
    layui中的分页laypage
    layui中的多图上传
  • 原文地址:https://www.cnblogs.com/ycxyyzw/p/3951737.html
Copyright © 2011-2022 走看看