Back to project page amulet.
The source code is released under:
MIT License
If you think the Android project amulet listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package scamell.michael.amulet; /*from ww w. j av a2s. c o m*/ import android.content.Context; public class SaveDrinkDiaryUtility { private final Context context; private final DrinkDiaryEntry drinkDiaryEntry; private final DrinkDiaryEntries drinkDiaryEntries; public SaveDrinkDiaryUtility(Context context, DrinkDiaryEntry drinkDiaryEntry, DrinkDiaryEntries drinkDiaryEntries) { this.context = context; this.drinkDiaryEntry = drinkDiaryEntry; this.drinkDiaryEntries = drinkDiaryEntries; } protected void saveDrinkDiaryEntryToStorage() { drinkDiaryEntries.addFirstEntry(drinkDiaryEntry); drinkDiaryEntries.saveToStorage(context, "DrinkDiaryEntries.json"); SendDrinkDiaryEntryToServer sendDrinkDiaryEntryToServer = new SendDrinkDiaryEntryToServer(context, drinkDiaryEntry); sendDrinkDiaryEntryToServer.sendDrinkDiaryEntryToServer(); } }