Code example for FileWriter

Methods: closeappend

0
 
	@Override 
	public Uri insert(Uri uri, ContentValues values) {
		 
		try { 
			FileWriter fileWriter = new FileWriter(myFile,true);
			fileWriter.append(values.getAsString("value"));
			fileWriter.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
			 
		} 
		Uri newUri = Uri.withAppendedPath(CONTENT_URI, "value");
		return newUri;
	} 
 
	 
 
	@Override 
Stop searching for code, let great code find you!  Add Codota to your java IDE