赞
踩
- String a = Environment.getDataDirectory().toString();
- String b = getFilesDir().getAbsolutePath();
- String c = getCacheDir().getAbsolutePath();
- String d = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS).getPath();
- String e = Environment.getExternalStorageDirectory().getPath();
- String f = getExternalFilesDir("Documents").getPath();
- Log.e(LOG_Info + "a: ", "Environment.getDataDirectory().toString():-----" + a);
- Log.e(LOG_Info + "b: ", "getFilesDir().getAbsolutePath():----- " + b);
- Log.e(LOG_Info + "c: ", "getCacheDir().getAbsolutePath():----- " + c);
- Log.e(LOG_Info + "d: ", "Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS).getPath():----- " + d);
- Log.e(LOG_Info + "e: ", "Environment.getExternalStorageDirectory().getPath():----- " + e);
- Log.e(LOG_Info + "f: ", "getExternalFilesDir(\"Documents\").getPath():----- " + f);
打印结果:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。