Back to project page SpeechWriter.
The source code is released under:
MIT License
If you think the Android project SpeechWriter 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 edu.psu.rcy5017.speechwriter.task; //from w ww . j a v a 2s .com import android.os.AsyncTask; import edu.psu.rcy5017.speechwriter.datasource.NoteDataSource; import edu.psu.rcy5017.speechwriter.model.Note; public class CreateNoteTask extends AsyncTask<Void, Void, Note> { private final NoteDataSource datasource; private final long noteCardID; public CreateNoteTask(NoteDataSource datasource, long noteCardID) { this.datasource = datasource; this.noteCardID = noteCardID; } @Override protected Note doInBackground(Void... params) { datasource.open(); final Note note = datasource.createNote("New Note", noteCardID); datasource.close(); return note; } }