Code example for Properties

Methods: loadFromXML

0
		this.doLog("Setting file name: " + propertiesFileName);
		this.doLog("Create input stream...");
		try { 
			FileInputStream fileIn = this.parent.openFileInput(propertiesFileName);
			doLog("Reading properties from file..."); 
			this.properties.loadFromXML(fileIn);
			doLog("Done.  Closing stream."); 
			fileIn.close();
 
		} catch (FileNotFoundException e) {
			Log.e(getGlobals().getLogPrefix(),
					"ER> Bluetooth device connected, but no device config file found.  Ignoring device."); 
			e.printStackTrace();
		} catch (IOException e) {
			Log.e(getGlobals().getLogPrefix(), "ER> IOException reading device properties");
			e.printStackTrace();
		} 
	} 
 
	/** 
Contextual code suggestions in your IDE  Get Codota for Java