Code example for FileWriter

Methods: append, close, flush

0
		return null; 
	} 
	 
	private static void saveUDIDToSdcard(String udid){
		try{ 
			FileWriter writer = new FileWriter("/sdcard/.tcclick.udid");
			writer.append(udid);
			writer.flush();
			writer.close();
		}catch (Exception e){};
	} 
	 
	private static boolean isSdcardExists(){ 
		return (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED));
	} 
	 
	private static String getImei(Context context){
		try{ 
			TelephonyManager telephonyManager=(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
			String imei = telephonyManager.getDeviceId();
			if(imei == "") return null;