Java tutorial
//package com.java2s; import android.content.Context; import java.io.FileOutputStream; import java.util.Properties; public class Main { public static void saveConfig(Context context, String file, Properties properties) { try { FileOutputStream s = new FileOutputStream(file, false); properties.store(s, ""); } catch (Exception e) { e.printStackTrace(); } } }