获取应用程序文件目录

ContextWrapper.getFilesDir(),这个函数返回存放应用程序文件的目录的路径

获取应用程序缓存目录

ContextWrapper.getCacheDir(),返回保存应用缓存文件的目录的路径

参考博文

Android获取程序路径 (/data/data/appname) - petercao - 博客园

相关文章:

  • 2021-08-05
  • 2021-09-28
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2021-06-10
猜你喜欢
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2021-10-16
  • 2022-02-16
  • 2021-09-17
相关资源
相似解决方案