I am trying to add a line of code to get the path to external storage directory
File extStore = Environment.getExternalStorageDirectory();
However, I cannot figure out what I need to Import to get the File
and Environment
objects
Android studio is not automatically adding it as I expected
Searching online, I cannot find anywhere what I need to import
How am I supposed to know this?
Stack Overflow answers like this do not provide the required Imports to make it work