I'm trying to write a file to my phone.
I used Environment.getDataDirectory()
to know the internal storage's path and Environment.getExternamStorageDirectory()
to know the external storage's path.
But when I use Environment.getExternalStorageDirectory()
as path, the file is created in internal storage. And when I use Environment.GetDataStorage()
as the path, the file is not created. (I am not sure, but I can't find it in the explorer app, at least.)
I think my phone's internal storage is perceived as external storage.(In my case, it has 32 GB amount of storage)
I want to know removable storage(e.g. micro SD card
) path. What should I do?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…