Android Get Application's 'Home' Data Directory
问题 A simple question, relating to the default 'home' directory when an app writes to the internal memory. By default, any files created are placed by the OS (2.2) in: /data/data/your.package/files When reading in files, the same default is used, when keeping in proper context via openFileInput() , openFileOutput() . But if I need to check file existence, for instance, using the File class, I need to specify the whole path in the constructor. I see there are Environment.getDataDirectory()