Code example for XmlSerializer

Methods: flush

0
			//File f = new File("GontrolTemp.xml"); 
			PrintWriter output = new PrintWriter(mDroidEnd.getOutputStream());
			//PrintWriter output = new PrintWriter(new FileWriter("/sdcard/GontrolTemp.xml")); 
			XmlSerializer serializer = Xml.newSerializer();
			MakeXML(serializer, output);
			serializer.flush();
			//output.flush(); 
			output.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
			Log.e("NETWORKING", "WRITER");
		} 
	} 
 
	class PaintThread extends Thread {
 
		private SurfaceHolder sh;
		private TouchPad tp;
		 
		public boolean tFlag;