Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试在三星、索尼等公司中使用 getExternalStorageDirectory(),但在 HTC 中使用 android 2.2 FROYo,如果我记得不错的话,会导致异常。
知道如何解决这个问题或在 HTC 设备中找到外部存储路径吗?
我的代码看起来像->
File folder = new File(Environment.getExternalStorageDirectory() + File.separator + path);
谢谢大家