Lines Matching defs:file
5 * you may not use this file except in compliance with the License.
30 import java.io.File;
40 * This loader first tries to load values from a config file in SD card. Then it fills in missing
94 File directory = Environment.getExternalStorageDirectory();
95 File file = new File(directory, FILENAME);
96 if (!file.exists()) {
99 Log.d(TAG, "Loading the config file...");
101 loadFromFile(values, file);
104 Log.e(TAG, "Error loading data from " + file, e);
108 private void loadFromFile(HashMap<String, String> values, File file) throws IOException {
111 reader = new BufferedReader(new FileReader(file));