Added local write for data to android app.